Fix back-end paths called by Vue front-end

This commit is contained in:
Bubka
2022-03-24 15:03:45 +01:00
parent d016507592
commit 4fcfcc6797
5 changed files with 6 additions and 6 deletions

View File

@ -68,7 +68,7 @@
submitProfile(e) {
e.preventDefault()
this.formProfile.put('/api/v1/user', {returnError: true})
this.formProfile.put('/user', {returnError: true})
.then(response => {
this.$notify({ type: 'is-success', text: this.$t('auth.forms.profile_saved') })
})
@ -86,7 +86,7 @@
submitPassword(e) {
e.preventDefault()
this.formPassword.patch('/api/v1/user/password', {returnError: true})
this.formPassword.patch('/user/password', {returnError: true})
.then(response => {
this.$notify({ type: 'is-success', text: response.data.message })