Skip to content

Commit c16c0d0

Browse files
authored
Fix: Avoid redirects (#137)
1 parent c20daf8 commit c16c0d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/views/UserAdmin.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default {
126126
},
127127
addUser() {
128128
axios
129-
.post("/api/v2/users", { username: this.newUsername, password: this.newPassword, admin: this.newAdmin })
129+
.post("/api/v2/users/", { username: this.newUsername, password: this.newPassword, admin: this.newAdmin })
130130
.then(response => {
131131
this.listUsers();
132132
this.clearForm();

src/views/UserProfile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default {
130130
},
131131
saveUserSettings() {
132132
axios
133-
.post("/api/v2/users", this.profile)
133+
.post("/api/v2/users/", this.profile)
134134
.then(() => {
135135
this.$eventBus.emit("displayMessage", {
136136
message: "Settings successfully updated.",

0 commit comments

Comments
 (0)