diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-10-01 15:58:20 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-10-03 11:44:40 +0300 |
commit | a2a538bc2f8bc92cc20917bfc5a5c39d7fc65563 (patch) | |
tree | 19c6593ee16b7f5a91da6afa3b6e666e71382894 /apps/oauth2/src/App.vue | |
parent | ecfa6f7e0c23d20dc2093a9f832c7ef4dd309a11 (diff) |
Import router
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/oauth2/src/App.vue')
-rw-r--r-- | apps/oauth2/src/App.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/oauth2/src/App.vue b/apps/oauth2/src/App.vue index 9098401be10..d19b9374dd6 100644 --- a/apps/oauth2/src/App.vue +++ b/apps/oauth2/src/App.vue @@ -75,6 +75,7 @@ <script> import axios from 'nextcloud-axios' import OAuthItem from './components/OAuthItem' +import { generateUrl } from 'nextcloud-router' export default { name: 'App', @@ -99,7 +100,7 @@ export default { }, methods: { deleteClient(id) { - axios.delete(OC.generateUrl('apps/oauth2/clients/{id}', { id: id })) + axios.delete(generateUrl('apps/oauth2/clients/{id}', { id: id })) .then((response) => { this.clients = this.clients.filter(client => client.id !== id) }) @@ -108,7 +109,7 @@ export default { this.newClient.error = false axios.post( - OC.generateUrl('apps/oauth2/clients'), + generateUrl('apps/oauth2/clients'), { name: this.newClient.name, redirectUri: this.newClient.redirectUri |