52fe56ec87
* adds prefer-const to eslint config and runs fixer * reverts unintended change
14 lines
388 B
JavaScript
14 lines
388 B
JavaScript
import ApplicationAdapter from './application';
|
|
|
|
export default class MfaSetupAdapter extends ApplicationAdapter {
|
|
adminGenerate(data) {
|
|
const url = `/v1/identity/mfa/method/totp/admin-generate`;
|
|
return this.ajax(url, 'POST', { data });
|
|
}
|
|
|
|
adminDestroy(data) {
|
|
const url = `/v1/identity/mfa/method/totp/admin-destroy`;
|
|
return this.ajax(url, 'POST', { data });
|
|
}
|
|
}
|