flagon-io/g1t

public

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t/apps/web/app/routes.ts

83 lines4,285 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 // People, apart from workspaces: `u` is a reserved name.
16 route("u/:username", "routes/user.tsx"),
17 route("explore", "routes/explore.tsx", { id: "explore" }),
18 route("pricing", "routes/pricing.tsx"),
19 route("search", "routes/explore.tsx", { id: "search" }),
20 route("workspaces/new", "routes/workspace/new.tsx"),
21 // A workspace's own pages sit under `-`, which no repository can be named.
22 route(":owner", "routes/workspace/layout.tsx", [
23 index("routes/workspace/overview.tsx"),
24 route("-/people", "routes/workspace/people.tsx"),
25 route("-/tokens", "routes/workspace/tokens.tsx"),
26 route("-/usage", "routes/workspace/usage.tsx"),
27 route("-/billing", "routes/workspace/billing.tsx"),
28 route("-/integrations", "routes/workspace/integrations.tsx"),
29 route("-/webhooks", "routes/workspace/webhooks.tsx"),
30 route("-/secrets", "routes/workspace/secrets.tsx"),
31 route("-/settings", "routes/workspace/settings.tsx"),
32 route("-/agents", "routes/workspace/agents.tsx"),
33 route("-/memory", "routes/workspace/memory.tsx"),
34 // What the workspace will have across its projects.
35 route("-/soon/:feature", "routes/workspace/soon.tsx"),
36 ]),
37 // Why a line is the way it is, fetched by the blame view.
38 route(":owner/:repo/why/:hash", "routes/repo/why.ts"),
39 // A project's agent runs as JSON, and stopping or messaging one.
40 route(":owner/:repo/agents.json", "routes/repo/agents-live.ts"),
41 // A project: its overview first, its repository's code under Code. The
42 // 1:1 project of a repository has the repository's name, so every
43 // repository address below keeps working.
44 route(":owner/:repo", "routes/repo/layout.tsx", [
45 index("routes/repo/overview.tsx"),
46 route("code", "routes/repo/code.tsx"),
47 route("tree/:ref/*", "routes/repo/tree.tsx"),
48 route("blob/:ref/*", "routes/repo/blob.tsx"),
49 route("commits", "routes/repo/commits.tsx"),
50 route("commit/:hash", "routes/repo/commit.tsx"),
51 route("issues", "routes/repo/issues.tsx"),
52 route("issues/new", "routes/repo/issue-new.tsx"),
53 route("issues/:number", "routes/repo/issue.tsx"),
54 route("pulls", "routes/repo/pulls.tsx"),
55 route("pulls/new", "routes/repo/pull-new.tsx"),
56 route("pull/:number", "routes/repo/pull.tsx"),
57 route("queue", "routes/repo/queue.tsx"),
58 route("agents", "routes/repo/agents.tsx"),
59 route("agents/runs/:id", "routes/repo/agents-run.tsx"),
60 route("sessions", "routes/repo/sessions.tsx"),
61 route("sessions/:number", "routes/repo/session.tsx"),
62 route("memory", "routes/repo/memory.tsx"),
63 route("actions", "routes/repo/actions.tsx"),
64 route("actions/runs/:id", "routes/repo/actions-run.tsx"),
65 route("actions/runs/:id/artifacts/:name", "routes/repo/actions-artifact.ts"),
66 route("actions/jobs/:job/log", "routes/repo/actions-log.ts"),
67 route("deployments", "routes/repo/deployments.tsx"),
68 route("deployments/:id", "routes/repo/deployment.tsx"),
69 route("plans", "routes/repo/plans.tsx"),
70 route("plans/:id", "routes/repo/plan.tsx"),
71 route("settings", "routes/repo/settings.tsx"),
72 route("settings/repository", "routes/repo/settings-repository.tsx"),
73 route("settings/webhooks", "routes/repo/webhooks.tsx"),
74 route("settings/secrets", "routes/repo/secrets.tsx"),
75 route("settings/deployments", "routes/repo/settings-deployments.tsx"),
76 route("settings/domains", "routes/repo/settings-domains.tsx"),
77 route("settings/dependencies", "routes/repo/settings-dependencies.tsx"),
78 // What the project will have: one page for each Soon in its menu.
79 route("soon/:feature", "routes/repo/soon.tsx"),
80 ]),
81 // Anything else: a 404 that still knows who is signed in.
82 route("*", "routes/not-found.tsx"),
83] satisfies RouteConfig;