-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Expand file tree
/
Copy pathroutes.ts
More file actions
38 lines (31 loc) · 863 Bytes
/
routes.ts
File metadata and controls
38 lines (31 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import {
index,
layout,
prefix,
type RouteConfig,
route,
} from "@react-router/dev/routes";
export default [
index("app/redirect-to-home.tsx"),
...prefix("/home", [
layout("app/home/_layout.tsx", [
index("app/home/home.tsx"),
route("/stock/:stockId", "app/home/stock.tsx"),
]),
]),
route("/market", "app/market/agents.tsx"),
// route("/ranking", "app/rank/board.tsx"),
...prefix("/agent", [
route("/:agentName", "app/agent/chat.tsx"),
route("/:agentName/config", "app/agent/config.tsx"),
]),
...prefix("/setting", [
layout("app/setting/_layout.tsx", [
index("app/setting/models.tsx"),
route("/general", "app/setting/general.tsx"),
route("/memory", "app/setting/memory.tsx"),
]),
]),
// router for test components
route("/test", "app/test.tsx"),
] satisfies RouteConfig;