memos/web/src/router/routes.ts

14 lines
315 B
TypeScript

export const ROUTES = {
ROOT: "/",
ATTACHMENTS: "/attachments",
INBOX: "/inbox",
ARCHIVED: "/archived",
SETTING: "/setting",
EXPLORE: "/explore",
AUTH: "/auth",
SHARED_MEMO: "/memos/shares",
} as const;
export type RouteKey = keyof typeof ROUTES;
export type RoutePath = (typeof ROUTES)[RouteKey];