diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-10-01 14:58:20 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-10-03 10:44:40 +0200 |
commit | a2a538bc2f8bc92cc20917bfc5a5c39d7fc65563 (patch) | |
tree | 19c6593ee16b7f5a91da6afa3b6e666e71382894 /apps/oauth2/src/App.vue | |
parent | ecfa6f7e0c23d20dc2093a9f832c7ef4dd309a11 (diff) | |
download | nextcloud-server-a2a538bc2f8bc92cc20917bfc5a5c39d7fc65563.tar.gz nextcloud-server-a2a538bc2f8bc92cc20917bfc5a5c39d7fc65563.zip |
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 |