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

20 lines944 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("enterprises", "routes/enterprises.tsx"),
10 route("enterprises/new", "routes/new-enterprise.tsx"),
11 route("enterprises/:id", "routes/enterprise.tsx"),
12 route("reach-out", "routes/reach-out.tsx"),
13 route("invoices", "routes/invoices.tsx"),
14 route("stripe", "routes/stripe.tsx"),
15 route("audit", "routes/audit.tsx"),
16 // What sudo will have: one placeholder page each, from lib/nav.ts.
17 ...soonItems().map((item) => route(item.to.slice(1), "routes/soon.tsx", { id: `soon${item.to.replace(/\//g, "-")}` })),
18 // Before sudo was organised around workspaces, everything was an account.
19 route("accounts/*", "routes/legacy-accounts.tsx"),
20] satisfies RouteConfig;