changed a lot

This commit is contained in:
Harivansh Rathi 2024-11-25 01:24:37 -05:00
parent ef9ccf22d3
commit 28901128ff
20 changed files with 1794 additions and 526 deletions

36
routes.ts Normal file
View file

@ -0,0 +1,36 @@
/**
* An array of routes that are accessible to the public
* These routes do not require authentication
* @type {string[]}
*/
export const publicRoutes = [
'/',
'/new-verification',
'/verify-email'
]
/**
* An array of routes that are used for authentication
* These routes will redirect logged in users to /dashboard
* @type {string[]}
*/
export const authRoutes = [
'/login',
'/register',
'/error',
'/reset',
'/new-verification'
]
/**
* The prefix for API authentication routes
* Routes that start with this prefix are used for API authentication purposes
* @type {string}
*/
export const apiAuthPrefix = '/api/auth'
/**
* The default redirect path after logging in
* @type {string}
*/
export const DEFAULT_LOGIN_REDIRECT = '/dashboard'