This commit is contained in:
Marcel Pociot
2020-05-03 22:10:34 +02:00
parent 7d0a570d85
commit 7821a2f172
6 changed files with 69 additions and 45 deletions

View File

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