optimize: add routes

This commit is contained in:
tao.chen
2026-08-03 10:49:39 +08:00
parent a44b984203
commit bededeb101
2 changed files with 13 additions and 509 deletions
+10 -2
View File
@@ -1,3 +1,11 @@
import { type RouteConfig, route } from "@react-router/dev/routes";
import { index, type RouteConfig, route } from "@react-router/dev/routes";
export default [route("*", "routes/platform.tsx")] satisfies RouteConfig;
export default [
route("login", "routes/login.tsx"),
index("routes/home.tsx"),
route("workbench", "routes/workbench.tsx"),
route("scripts", "routes/scripts.tsx"),
route("schedules", "routes/schedules.tsx"),
route("system", "routes/system.tsx"),
route("*", "routes/platform.tsx"),
] satisfies RouteConfig;