This commit is contained in:
Marcel Pociot
2020-05-03 23:27:51 +02:00
parent 37aeee76e4
commit 0b120245db
9 changed files with 182 additions and 29 deletions

View File

@@ -97,7 +97,7 @@
methods: {
deleteUser(user) {
fetch('/users/' + user.id, {
fetch('/api/users/' + user.id, {
method: 'DELETE',
}).then((response) => {
return response.json();
@@ -106,7 +106,7 @@
});
},
saveUser() {
fetch('/users', {
fetch('/api/users', {
method: 'POST',
headers: {
'Content-Type': 'application/json'