This commit is contained in:
James Cole
2020-10-13 06:51:44 +02:00
parent 4b1f4ae319
commit 96dbd633bf
3 changed files with 10 additions and 10 deletions

View File

@@ -224,7 +224,7 @@ export default {
* Get all of the personal access tokens for the user.
*/
getTokens() {
axios.get('/oauth/personal-access-tokens')
axios.get('./oauth/personal-access-tokens')
.then(response => {
this.tokens = response.data;
});
@@ -234,7 +234,7 @@ export default {
* Get all of the available scopes.
*/
getScopes() {
axios.get('/oauth/scopes')
axios.get('./oauth/scopes')
.then(response => {
this.scopes = response.data;
});
@@ -255,7 +255,7 @@ export default {
this.form.errors = [];
axios.post('/oauth/personal-access-tokens', this.form)
axios.post('./oauth/personal-access-tokens', this.form)
.then(response => {
this.form.name = '';
this.form.scopes = [];
@@ -307,7 +307,7 @@ export default {
* Revoke the given token.
*/
revoke(token) {
axios.delete('/oauth/personal-access-tokens/' + token.id)
axios.delete('./oauth/personal-access-tokens/' + token.id)
.then(response => {
this.getTokens();
});