-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.ts
40 lines (37 loc) · 823 Bytes
/
routes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Publicly accessible routes in the application.
* These routes do not require authentication.
*
* @type {string[]}
*/
export const publicRoutes = [
'/',
'/auth/new-verification',
];
/**
* Routes related to authentication.
* These routes will redirect logged in users to /settings.
*
* @type {string[]}
*/
export const authRoutes = [
'/auth/login',
'/auth/register',
'/auth/error',
'/auth/reset-password',
'/auth/new-password'
];
/**
* Prefix for authentication-related API endpoints.
* This is used as the base path for auth API routes.
*
* @type {string}
*/
export const apiAuthPrefix = '/api/auth';
/**
* Default redirect path after a successful login.
* Users will be redirected to this path upon logging in.
*
* @type {string}
*/
export const DEFAULT_LOGIN_REDIRECT = '/settings';