mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
wip
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user