controller refactoring part 10

This commit is contained in:
Peter Papp
2021-07-20 16:45:17 +02:00
parent 8b250e94cb
commit 2d814f3839
10 changed files with 84 additions and 58 deletions
@@ -100,7 +100,7 @@ export default {
this.isLoading = true
axios
.post('/api/user/token/create', {
.post('/api/user/tokens', {
name: this.name
})
.then(response => {
+1 -1
View File
@@ -161,7 +161,7 @@
})
},
deleteToken(id) {
axios.delete(`/api/user/token/revoke/${id}`)
axios.delete(`/api/user/tokens/${id}`)
.then(() => {
this.tokens = this.tokens.filter(tokenItem => tokenItem.id !== id)