-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.ts
45 lines (32 loc) · 1.02 KB
/
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
41
42
43
44
45
/*
Define your public routes here. These routes will not require authentication.
For example:
export const publicRoutes = ["/login", "/about"];
*/
export const publicRoutes = ["/", "/auth/new-verification","/api/inventory","/api/maintenance/request"];
/*
Define your private routes here. These routes will require authentication.
For example:
export const authRoutes = ["/dashboard", "/profile"];
*/
export const authRoutes = [
"/api/maintenance/request",
"/inventory",
"/auth/login",
"/auth/register",
"/auth/error",
"/auth/reset",
"/auth/new-password",
];
/*
Define your API authentication prefix here. This is the path that your API endpoints will be mounted under.
For example:
export const apiAuthPrefix = "/api/auth";
*/
export const apiAuthPrefix = "/api";
/*
Define your default login redirect path here. This is the path that users will be redirected to after logging in.
For example:
export const DEFAULT_LOGIN_REDIRECT = "/dashboard";
*/
export const DEFAULT_LOGIN_REDIRECT = "/settings";