add client/admin pages, show info and created admin api and server actions
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
import { UUID_V4_REGEX } from '@/config/validation'
|
||||
|
||||
export const USER_PROFILE_URL: string = '/cabinet'
|
||||
export const USER_SERVER_URL: string = `${USER_PROFILE_URL}/server`
|
||||
export const USER_CLIENT_URL: string = `${USER_PROFILE_URL}/client`
|
||||
export const USER_ADMIN_URL: string = `${USER_PROFILE_URL}/admin`
|
||||
export const AUTH_URL: string = '/auth/'
|
||||
export const AUTH_LOGIN_URL: string = `${AUTH_URL}login`
|
||||
export const AUTH_REGISTER_URL: string = `${AUTH_URL}register`
|
||||
@@ -9,6 +12,8 @@ export const AUTH_ERROR_URL: string = `${AUTH_URL}error`
|
||||
export const AUTH_USER_VERIFICATION_URL: string = `${AUTH_URL}user-verification`
|
||||
export const AUTH_NEW_PASSWORD_URL: string = `${AUTH_URL}new-password`
|
||||
|
||||
export const CABINET_ROUTES: string[] = [USER_SERVER_URL, USER_CLIENT_URL, USER_ADMIN_URL, USER_PROFILE_URL] as const
|
||||
|
||||
/**
|
||||
* An array of routes that accessible to the public.
|
||||
* These routes do not requite authentication.
|
||||
@@ -31,10 +36,10 @@ export const authRoutesRegEx = [
|
||||
|
||||
/**
|
||||
* The prefix for API authentication routes.
|
||||
* Routes that start with this prefix are used for API authentication purpose.
|
||||
* Routes that start with this prefix are used for API authentication purposes.
|
||||
* @type {string}
|
||||
*/
|
||||
export const apiAuthPrefix: string = '/api/auth'
|
||||
export const apiAuthPrefixRegEx: string = '/api/(auth|admin)'
|
||||
|
||||
/**
|
||||
* The default redirect path after logging in.
|
||||
|
||||
Reference in New Issue
Block a user