Avoid optional Fortify route imports
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
export const fortifyRoutes = {
|
||||
register: {
|
||||
create: '/register',
|
||||
store: '/register',
|
||||
},
|
||||
password: {
|
||||
request: '/forgot-password',
|
||||
email: '/forgot-password',
|
||||
update: '/reset-password',
|
||||
confirm: '/user/confirm-password',
|
||||
reset: (token: string): string => `/reset-password/${encodeURIComponent(token)}`,
|
||||
},
|
||||
verification: {
|
||||
send: '/email/verification-notification',
|
||||
},
|
||||
twoFactor: {
|
||||
challenge: '/two-factor-challenge',
|
||||
enable: '/user/two-factor-authentication',
|
||||
disable: '/user/two-factor-authentication',
|
||||
confirm: '/user/confirmed-two-factor-authentication',
|
||||
qrCode: '/user/two-factor-qr-code',
|
||||
recoveryCodes: '/user/two-factor-recovery-codes',
|
||||
secretKey: '/user/two-factor-secret-key',
|
||||
},
|
||||
} as const;
|
||||
Reference in New Issue
Block a user