| 1 | import { type RouteConfig, index, route } from "@react-router/dev/routes"; |
| 2 | |
| 3 | export 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 | route("explore", "routes/explore.tsx", { id: "explore" }), |
| 16 | route("search", "routes/explore.tsx", { id: "search" }), |
| 17 | route("workspaces/new", "routes/workspace-new.tsx"), |
| 18 | route(":owner", "routes/workspace.tsx"), |
| 19 | route(":owner/:repo", "routes/repo/layout.tsx", [ |
| 20 | index("routes/repo/code.tsx"), |
| 21 | route("tree/:ref/*", "routes/repo/tree.tsx"), |
| 22 | route("blob/:ref/*", "routes/repo/blob.tsx"), |
| 23 | route("commits", "routes/repo/commits.tsx"), |
| 24 | route("issues", "routes/repo/issues.tsx"), |
| 25 | route("issues/new", "routes/repo/issue-new.tsx"), |
| 26 | route("issues/:number", "routes/repo/issue.tsx"), |
| 27 | route("pulls", "routes/repo/pulls.tsx"), |
| 28 | route("pull/:number", "routes/repo/pull.tsx"), |
| 29 | ]), |
| 30 | ] satisfies RouteConfig; |