-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.ts
39 lines (35 loc) · 1.04 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
/**
* An array of routes that are accessible to the public
* These routes do not require authentication
* @type {string[]}
*/
export const publicRoutes = ["/", "/auth/new-verification", "/api/webhook/stripe"];
/**
* An array of routes that are used for authentication
* These routes will redirect logged in users to /settings
* @type {string[]}
*/
export const authRoutes = [
"/auth/login",
"/auth/register",
"/auth/error",
"/auth/reset",
"/auth/new-password",
];
/**
* An array of routes that are accessible to authenticated users
* These routes require authentication
* @type {string[]}
*/
// export const privateRoutes = [""]; All routes are private by default, is defined the middleware.ts
/**
* The prefix for API authentication routes
* Routes that start with this prefix are used for API authentication purposes. They are available to the public.
* @type {string}
*/
export const apiAuthPrefix = "/api/auth";
/**
* The default redirect path after logging in
* @type {string}
*/
export const DEFAULT_LOGIN_REDIRECT = "/new-video";