g1t/apps/web/app/routes.ts

18 lines710 bytesCodeBlame
1import { type RouteConfig, index, route } from "@react-router/dev/routes";
2
3export default [
4 index("routes/home.tsx"),
5 route("login", "routes/login.tsx"),
6 route("logout", "routes/logout.tsx"),
7 route("new", "routes/new.tsx"),
8 route("settings", "routes/settings.tsx"),
9 route(":owner/:repo", "routes/repo/layout.tsx", [
10 index("routes/repo/code.tsx"),
11 route("tree/:ref/*", "routes/repo/tree.tsx"),
12 route("blob/:ref/*", "routes/repo/blob.tsx"),
13 route("intents", "routes/repo/intents.tsx"),
14 route("intents/new", "routes/repo/intent-new.tsx"),
15 route("intents/:number", "routes/repo/intent.tsx"),
16 route("attempts/:id", "routes/repo/attempt.tsx"),
17 ]),
18] satisfies RouteConfig;