g1t/apps/web/app/routes.ts

29 lines1,215 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("device", "routes/device.tsx"),
12 route("new", "routes/new.tsx"),
13 route("settings", "routes/settings.tsx"),
14 route("explore", "routes/explore.tsx", { id: "explore" }),
15 route("search", "routes/explore.tsx", { id: "search" }),
16 route("workspaces/new", "routes/workspace-new.tsx"),
17 route(":owner", "routes/workspace.tsx"),
18 route(":owner/:repo", "routes/repo/layout.tsx", [
19 index("routes/repo/code.tsx"),
20 route("tree/:ref/*", "routes/repo/tree.tsx"),
21 route("blob/:ref/*", "routes/repo/blob.tsx"),
22 route("commits", "routes/repo/commits.tsx"),
23 route("issues", "routes/repo/issues.tsx"),
24 route("issues/new", "routes/repo/issue-new.tsx"),
25 route("issues/:number", "routes/repo/issue.tsx"),
26 route("pulls", "routes/repo/pulls.tsx"),
27 route("pull/:number", "routes/repo/pull.tsx"),
28 ]),
29] satisfies RouteConfig;