change method to PUT

This commit is contained in:
Eduardo Quiros 2022-08-03 22:44:52 -06:00
parent e4b39e8c51
commit d3b170424f
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ const Inquilinos = () => {
} }
fetch('http://localhost:3000/api/createUser', { fetch('http://localhost:3000/api/createUser', {
method: 'POST', method: 'PUT',
cache: 'no-cache', cache: 'no-cache',
body: JSON.stringify(data), body: JSON.stringify(data),
headers: { headers: {