diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-05-08 09:39:09 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-05-08 07:48:46 +0000 |
commit | bc8e107d16d02c500bed6baac71ac571177bd309 (patch) | |
tree | e6358af40aad9ac593f1c34e1684ff31b9ca8ebe /apps/twofactor_backupcodes/src | |
parent | 885163e5d1e8756aed703391452334290274b887 (diff) | |
download | nextcloud-server-bc8e107d16d02c500bed6baac71ac571177bd309.tar.gz nextcloud-server-bc8e107d16d02c500bed6baac71ac571177bd309.zip |
Fix linter warnings on twofactor_backupcodes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/twofactor_backupcodes/src')
-rw-r--r-- | apps/twofactor_backupcodes/src/service/BackupCodesService.js | 3 |
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) } |