diff --git a/src/views/UserAdmin.vue b/src/views/UserAdmin.vue index eeef64f..90c9133 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 9e9e429..1a33ec8 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.",