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/sudo/app/routes.ts

26 lines1,203 bytesCodeBlame
1import { type RouteConfig, index, route } from "@react-router/dev/routes";
2
3import { soonItems } from "./lib/nav.ts";
4
5export default [
6 index("routes/overview.tsx"),
7 route("workspaces", "routes/workspaces.tsx"),
8 route("workspaces/:slug", "routes/workspace.tsx"),
9 route("users/:username", "routes/user.tsx"),
10 route("enterprises", "routes/enterprises.tsx"),
11 route("invites", "routes/invites.tsx"),
12 route("enterprises/new", "routes/new-enterprise.tsx"),
13 route("enterprises/:id", "routes/enterprise.tsx"),
14 route("reach-out", "routes/reach-out.tsx"),
15 route("requests", "routes/requests.tsx"),
16 route("overages", "routes/overages.tsx"),
17 route("velocity", "routes/velocity.tsx"),
18 route("abuse", "routes/abuse.tsx"),
19 route("invoices", "routes/invoices.tsx"),
20 route("stripe", "routes/stripe.tsx"),
21 route("audit", "routes/audit.tsx"),
22 // What sudo will have: one placeholder page each, from lib/nav.ts.
23 ...soonItems().map((item) => route(item.to.slice(1), "routes/soon.tsx", { id: `soon${item.to.replace(/\//g, "-")}` })),
24 // Before sudo was organised around workspaces, everything was an account.
25 route("accounts/*", "routes/legacy-accounts.tsx"),
26] satisfies RouteConfig;