11 lines
407 B
TypeScript
11 lines
407 B
TypeScript
/** 无需登录即可访问的路由 path */
|
|
export const PUBLIC_PATHS = ['/', '/login', '/casdoor-callback', '/reset-password'] as const;
|
|
|
|
/** 登录后首页默认跳转的 Agent ID */
|
|
export const DEFAULT_CHAT_AGENT_ID = 16;
|
|
|
|
export type PublicPath = (typeof PUBLIC_PATHS)[number];
|
|
|
|
export const isPublicPath = (path: string): path is PublicPath =>
|
|
(PUBLIC_PATHS as readonly string[]).includes(path);
|