aboutsummaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/src
diff options
context:
space:
mode:
Diffstat (limited to 'apps/twofactor_backupcodes/src')
-rw-r--r--apps/twofactor_backupcodes/src/service/BackupCodesService.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/twofactor_backupcodes/src/service/BackupCodesService.js b/apps/twofactor_backupcodes/src/service/BackupCodesService.js
index b79fc35923c..6d49892df5b 100644
--- a/apps/twofactor_backupcodes/src/service/BackupCodesService.js
+++ b/apps/twofactor_backupcodes/src/service/BackupCodesService.js
@@ -1,7 +1,8 @@
import Axios from '@nextcloud/axios'
+import { generateUrl } from '@nextcloud/router'
export function generateCodes() {
- const url = OC.generateUrl('/apps/twofactor_backupcodes/settings/create')
+ const url = generateUrl('/apps/twofactor_backupcodes/settings/create')
return Axios.post(url, {}).then(resp => resp.data)
}