mirror of
https://github.com/harivansh-afk/Saas-Teamspace.git
synced 2026-04-21 17:00:49 +00:00
changed a lot
This commit is contained in:
parent
ef9ccf22d3
commit
28901128ff
20 changed files with 1794 additions and 526 deletions
36
routes.ts
Normal file
36
routes.ts
Normal 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue