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

No files matched your search

+2 -2
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'