pr_01m47d15m3e54sn21z27rpy5n9/apps/web/app/routes.ts

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