mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-05-25 22:24:42 +00:00
controller refactoring part 10
This commit is contained in:
@@ -100,7 +100,7 @@ export default {
|
||||
this.isLoading = true
|
||||
|
||||
axios
|
||||
.post('/api/user/token/create', {
|
||||
.post('/api/user/tokens', {
|
||||
name: this.name
|
||||
})
|
||||
.then(response => {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user