pr_01m47d24b0e6n91zwymwxg0vpx/apps/web/app/routes.ts

47 lines2,161 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("oauth/authorize", "routes/oauth-authorize.tsx"),
13 route("new", "routes/new.tsx"),
14 route("settings", "routes/settings.tsx"),
15 route("explore", "routes/explore.tsx", { id: "explore" }),
16 route("search", "routes/explore.tsx", { id: "search" }),
17 route("workspaces/new", "routes/workspace/new.tsx"),
18 // A workspace's own pages sit under `-`, which no repository can be named.
19 route(":owner", "routes/workspace/layout.tsx", [
20 index("routes/workspace/overview.tsx"),
21 route("-/people", "routes/workspace/people.tsx"),
22 route("-/tokens", "routes/workspace/tokens.tsx"),
23 route("-/usage", "routes/workspace/usage.tsx"),
24 route("-/billing", "routes/workspace/billing.tsx"),
25 route("-/integrations", "routes/workspace/integrations.tsx"),
26 route("-/settings", "routes/workspace/settings.tsx"),
27 ]),
28 // Why a line is the way it is, fetched by the blame view.
29 route(":owner/:repo/why/:hash", "routes/repo/why.ts"),
30 route(":owner/:repo", "routes/repo/layout.tsx", [
31 index("routes/repo/code.tsx"),
32 route("tree/:ref/*", "routes/repo/tree.tsx"),
33 route("blob/:ref/*", "routes/repo/blob.tsx"),
34 route("commits", "routes/repo/commits.tsx"),
35 route("commit/:hash", "routes/repo/commit.tsx"),
36 route("issues", "routes/repo/issues.tsx"),
37 route("issues/new", "routes/repo/issue-new.tsx"),
38 route("issues/:number", "routes/repo/issue.tsx"),
39 route("pulls", "routes/repo/pulls.tsx"),
40 route("pulls/new", "routes/repo/pull-new.tsx"),
41 route("pull/:number", "routes/repo/pull.tsx"),
42 route("queue", "routes/repo/queue.tsx"),
43 route("plans", "routes/repo/plans.tsx"),
44 route("plans/:id", "routes/repo/plan.tsx"),
45 route("settings", "routes/repo/settings.tsx"),
46 ]),
47] satisfies RouteConfig;