Files
model-platform/frontend/app/routes.ts
T

34 lines
1.8 KiB
TypeScript

import {type RouteConfig, index, route} from "@react-router/dev/routes";
export default [
route("login", "routes/login.tsx"),
route("", "routes/platform.tsx", [
index("features/platform/RootIndex.tsx"),
route("workbench", "features/platform/DashboardRoute.tsx"),
route("scripts", "features/platform/ScriptsPage.tsx"),
route("schedules", "features/schedules/SchedulesPageRoute.tsx"),
route("operations", "routes/operations.tsx", [
index("features/operations/OperationsWorkbenchPage.tsx"),
route("usage", "features/operations/UsageStatsPage.tsx"),
route("models", "features/operations/ModelOverviewPage.tsx"),
route("banks", "features/operations/BankOverviewPage.tsx"),
route("deployed-models", "features/operations/DeployedModelsPage.tsx"),
route("monitoring", "features/operations/MonitoringOverviewPage.tsx"),
route("monitoring/:modelId", "features/operations/MonitoringDetailPage.tsx"),
route("reports", "features/operations/ReportPage.tsx"),
route("report-summary", "features/operations/ReportSummaryPage.tsx"),
route("workflows", "features/operations/WorkflowPage.tsx"),
route("knowledge", "features/operations/KnowledgeBasePage.tsx"),
route("rules", "features/operations/RuleManagementPage.tsx"),
route("prompts", "features/operations/PromptManagementPage.tsx"),
route("settings", "features/operations/SystemConfigPage.tsx"),
]),
route("system", "routes/system.tsx", [
index("routes/system-index.tsx"),
route("users", "routes/system-users.tsx"),
route("projects", "routes/system-projects.tsx"),
route("roles", "routes/system-roles.tsx"),
]),
]),
] satisfies RouteConfig;