-
Notifications
You must be signed in to change notification settings - Fork 5
/
routes.ts
35 lines (32 loc) · 894 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
/**
* An array of routes that are accessible to the public
* These routes does not require authentication
* @type {string[]}
*/
export const publicRoutes: string[] = [
'/',
'/privacy-policy',
'/terms-and-conditions',
'/download-cv',
'/api/send',
'/api/portfolio',
'/api/resume/generate-link',
'/api/resume/download-file'
];
/**
* An array of routes that are used for authentication
* These routes will redirect signed in users to /dashboard
* @type {string[]}
*/
export const authRoutes: string[] = ['/auth/sign-in', '/auth/sign-up'];
/**
* The prefix for API authentication routes
* Routes that start with this prefix are used for API authentication purposes
* @type {string}
*/
export const apiAuthPrefix: string = '/api/auth';
/**
* The default redirect path after signing in
* @type {string}
*/
export const DEFAULT_SIGNIN_REDIRECT: string = '/dashboard';