g1t/apps/web/app/routes.ts

26 lines1,082 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("register", "routes/register.tsx"),
7 route("logout", "routes/logout.tsx"),
8 route("verify", "routes/verify.tsx"),
9 route("forgot", "routes/forgot.tsx"),
10 route("reset", "routes/reset.tsx"),
11 route("new", "routes/new.tsx"),
12 route("settings", "routes/settings.tsx"),
13 route("explore", "routes/explore.tsx", { id: "explore" }),
14 route("search", "routes/explore.tsx", { id: "search" }),
15 route(":owner", "routes/profile.tsx"),
16 route(":owner/:repo", "routes/repo/layout.tsx", [
17 index("routes/repo/code.tsx"),
18 route("tree/:ref/*", "routes/repo/tree.tsx"),
19 route("blob/:ref/*", "routes/repo/blob.tsx"),
20 route("commits", "routes/repo/commits.tsx"),
21 route("intents", "routes/repo/intents.tsx"),
22 route("intents/new", "routes/repo/intent-new.tsx"),
23 route("intents/:number", "routes/repo/intent.tsx"),
24 route("attempts/:id", "routes/repo/attempt.tsx"),
25 ]),
26] satisfies RouteConfig;