optimize: add routes
This commit is contained in:
+10
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user