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

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