Skip to content

Commit

Permalink
Avoid redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop committed Jan 16, 2024
1 parent 00e5199 commit fffda29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/views/UserAdmin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/views/UserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down

0 comments on commit fffda29

Please sign in to comment.