mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #3914
This commit is contained in:
parent
4b1f4ae319
commit
96dbd633bf
@ -112,7 +112,7 @@ export default {
|
|||||||
* Get all of the authorized tokens for the user.
|
* Get all of the authorized tokens for the user.
|
||||||
*/
|
*/
|
||||||
getTokens() {
|
getTokens() {
|
||||||
axios.get('/oauth/tokens')
|
axios.get('./oauth/tokens')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.tokens = response.data;
|
this.tokens = response.data;
|
||||||
});
|
});
|
||||||
@ -122,7 +122,7 @@ export default {
|
|||||||
* Revoke the given token.
|
* Revoke the given token.
|
||||||
*/
|
*/
|
||||||
revoke(token) {
|
revoke(token) {
|
||||||
axios.delete('/oauth/tokens/' + token.id)
|
axios.delete('./oauth/tokens/' + token.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.getTokens();
|
this.getTokens();
|
||||||
});
|
});
|
||||||
|
@ -341,7 +341,7 @@ export default {
|
|||||||
* Get all of the OAuth clients for the user.
|
* Get all of the OAuth clients for the user.
|
||||||
*/
|
*/
|
||||||
getClients() {
|
getClients() {
|
||||||
axios.get('/oauth/clients')
|
axios.get('./oauth/clients')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.clients = response.data;
|
this.clients = response.data;
|
||||||
});
|
});
|
||||||
@ -360,7 +360,7 @@ export default {
|
|||||||
store() {
|
store() {
|
||||||
this.persistClient(
|
this.persistClient(
|
||||||
'post',
|
'post',
|
||||||
'/oauth/clients',
|
'./oauth/clients',
|
||||||
this.createForm,
|
this.createForm,
|
||||||
'#modal-create-client'
|
'#modal-create-client'
|
||||||
);
|
);
|
||||||
@ -383,7 +383,7 @@ export default {
|
|||||||
update() {
|
update() {
|
||||||
this.persistClient(
|
this.persistClient(
|
||||||
'put',
|
'put',
|
||||||
'/oauth/clients/' + this.editForm.id,
|
'./oauth/clients/' + this.editForm.id,
|
||||||
this.editForm,
|
this.editForm,
|
||||||
'#modal-edit-client'
|
'#modal-edit-client'
|
||||||
);
|
);
|
||||||
@ -431,7 +431,7 @@ export default {
|
|||||||
* Destroy the given client.
|
* Destroy the given client.
|
||||||
*/
|
*/
|
||||||
destroy(client) {
|
destroy(client) {
|
||||||
axios.delete('/oauth/clients/' + client.id)
|
axios.delete('./oauth/clients/' + client.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.getClients();
|
this.getClients();
|
||||||
});
|
});
|
||||||
|
@ -224,7 +224,7 @@ export default {
|
|||||||
* Get all of the personal access tokens for the user.
|
* Get all of the personal access tokens for the user.
|
||||||
*/
|
*/
|
||||||
getTokens() {
|
getTokens() {
|
||||||
axios.get('/oauth/personal-access-tokens')
|
axios.get('./oauth/personal-access-tokens')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.tokens = response.data;
|
this.tokens = response.data;
|
||||||
});
|
});
|
||||||
@ -234,7 +234,7 @@ export default {
|
|||||||
* Get all of the available scopes.
|
* Get all of the available scopes.
|
||||||
*/
|
*/
|
||||||
getScopes() {
|
getScopes() {
|
||||||
axios.get('/oauth/scopes')
|
axios.get('./oauth/scopes')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.scopes = response.data;
|
this.scopes = response.data;
|
||||||
});
|
});
|
||||||
@ -255,7 +255,7 @@ export default {
|
|||||||
|
|
||||||
this.form.errors = [];
|
this.form.errors = [];
|
||||||
|
|
||||||
axios.post('/oauth/personal-access-tokens', this.form)
|
axios.post('./oauth/personal-access-tokens', this.form)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.form.name = '';
|
this.form.name = '';
|
||||||
this.form.scopes = [];
|
this.form.scopes = [];
|
||||||
@ -307,7 +307,7 @@ export default {
|
|||||||
* Revoke the given token.
|
* Revoke the given token.
|
||||||
*/
|
*/
|
||||||
revoke(token) {
|
revoke(token) {
|
||||||
axios.delete('/oauth/personal-access-tokens/' + token.id)
|
axios.delete('./oauth/personal-access-tokens/' + token.id)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.getTokens();
|
this.getTokens();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user