|
@@ -123,7 +123,7 @@
|
|
async revokeToken(tokenId) {
|
|
async revokeToken(tokenId) {
|
|
if(confirm(this.$t('settings.confirm.revoke'))) {
|
|
if(confirm(this.$t('settings.confirm.revoke'))) {
|
|
|
|
|
|
- await this.axios.delete('/api/v1/oauth/personal-access-tokens/' + tokenId).then(response => {
|
|
|
|
|
|
+ await this.axios.delete('/oauth/personal-access-tokens/' + tokenId).then(response => {
|
|
// Remove the revoked token from the collection
|
|
// Remove the revoked token from the collection
|
|
this.tokens = this.tokens.filter(a => a.id !== tokenId)
|
|
this.tokens = this.tokens.filter(a => a.id !== tokenId)
|
|
this.$notify({ type: 'is-success', text: this.$t('settings.token_revoked') })
|
|
this.$notify({ type: 'is-success', text: this.$t('settings.token_revoked') })
|