pr_01m47d24b0e6n91zwymwxg0vpx/apps/sudo/app/routes.ts
| 1 | import { type RouteConfig, index, route } from "@react-router/dev/routes"; |
| 2 | |
| 3 | export default [ |
| 4 | index("routes/workspaces.tsx"), |
| 5 | route("workspaces", "routes/workspaces-redirect.tsx"), |
| 6 | route("workspaces/:slug", "routes/workspace.tsx"), |
| 7 | route("enterprises", "routes/enterprises.tsx"), |
| 8 | route("enterprises/new", "routes/new-enterprise.tsx"), |
| 9 | route("enterprises/:id", "routes/enterprise.tsx"), |
| 10 | route("stripe", "routes/stripe.tsx"), |
| 11 | // Before sudo was organised around workspaces, everything was an account. |
| 12 | route("accounts/*", "routes/legacy-accounts.tsx"), |
| 13 | ] satisfies RouteConfig; |