summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes/src/service/BackupCodesService.js
blob: b79fc35923c43c23df24c37801b929e48f694a6f (plain)
1
2
3
4
5
6
7
import Axios from '@nextcloud/axios'

export function generateCodes() {
	const url = OC.generateUrl('/apps/twofactor_backupcodes/settings/create')

	return Axios.post(url, {}).then(resp => resp.data)
}