-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroute.ts
More file actions
35 lines (32 loc) · 820 Bytes
/
route.ts
File metadata and controls
35 lines (32 loc) · 820 Bytes
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 which are accessiable to the Public ie anyone can
* view it without Logging in
* @type {string[]}
*/
export const publicRoutes=[
"/",
"/api/v1/links/fetchAllLinks",
"/api/v1/links/addLink",
"/api/v1/tags/createTag",
"/api/v1/tags/getAllTags"
]
/**
* An Array of Routes which are used for the authentication
* These Routes will redirect the loggedin users to /settings
* @type {string[]}
*/
export const authRoutes=[
"/auth/login",
"/auth/register"
]
/**
* The Prefix for API authtentication 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 Login
* @type {string}
*/
export const DEFAULT_LOGIN_REDIRECT="/dashboard"