Set up paths & namespace to match versioned routes

This commit is contained in:
Bubka
2021-11-07 21:57:22 +01:00
parent 0f17d93152
commit 7efa86b232
47 changed files with 98 additions and 94 deletions

View File

@ -79,7 +79,7 @@
this.isFetching = true
await this.axios.get('api/groups').then(response => {
await this.axios.get('api/v1/groups').then(response => {
const groups = []
response.data.forEach((data) => {
@ -101,7 +101,7 @@
*/
deleteGroup(id) {
if(confirm(this.$t('groups.confirm.delete'))) {
this.axios.delete('/api/groups/' + id)
this.axios.delete('/api/v1/groups/' + id)
// Remove the deleted group from the collection
this.groups = this.groups.filter(a => a.id !== id)