mirror of
https://github.com/harivansh-afk/Saas-Teamspace.git
synced 2026-04-15 03:00:47 +00:00
36 lines
772 B
TypeScript
36 lines
772 B
TypeScript
/**
|
|
* 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'
|