From fffda29b514ab3324d8e52d4886457aacbc292e8 Mon Sep 17 00:00:00 2001 From: Thomas Chopitea Date: Tue, 16 Jan 2024 13:36:46 +0000 Subject: [PATCH] Avoid redirects --- src/views/UserAdmin.vue | 2 +- src/views/UserProfile.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/UserAdmin.vue b/src/views/UserAdmin.vue index eeef64fd..90c91332 100644 --- a/src/views/UserAdmin.vue +++ b/src/views/UserAdmin.vue @@ -126,7 +126,7 @@ export default { }, addUser() { axios - .post("/api/v2/users", { username: this.newUsername, password: this.newPassword, admin: this.newAdmin }) + .post("/api/v2/users/", { username: this.newUsername, password: this.newPassword, admin: this.newAdmin }) .then(response => { this.listUsers(); this.clearForm(); diff --git a/src/views/UserProfile.vue b/src/views/UserProfile.vue index 9e9e4290..1a33ec8c 100644 --- a/src/views/UserProfile.vue +++ b/src/views/UserProfile.vue @@ -130,7 +130,7 @@ export default { }, saveUserSettings() { axios - .post("/api/v2/users", this.profile) + .post("/api/v2/users/", this.profile) .then(() => { this.$eventBus.emit("displayMessage", { message: "Settings successfully updated.",