30 lines
1.5 KiB
TypeScript
30 lines
1.5 KiB
TypeScript
import { type RouteConfig, index, route } from "@react-router/dev/routes";
|
|
|
|
export default [
|
|
index("routes/home.tsx"),
|
|
route("i/:inviteCode", "routes/i.$inviteCode.tsx"),
|
|
route("leagues/new", "routes/leagues/new.tsx"),
|
|
route("leagues/:leagueId", "routes/leagues/$leagueId.tsx"),
|
|
route("leagues/:leagueId/settings", "routes/leagues/$leagueId.settings.tsx"),
|
|
route("api/webhooks/clerk", "routes/api/webhooks/clerk.ts"),
|
|
route("user-profile", "routes/user-profile.tsx"),
|
|
route("how-to-play", "routes/how-to-play.tsx"),
|
|
|
|
// Admin routes
|
|
route("admin", "routes/admin.tsx", [
|
|
index("routes/admin._index.tsx"),
|
|
route("sports", "routes/admin.sports.tsx"),
|
|
route("sports/new", "routes/admin.sports.new.tsx"),
|
|
route("sports/:id", "routes/admin.sports.$id.tsx"),
|
|
route("sports-seasons", "routes/admin.sports-seasons.tsx"),
|
|
route("sports-seasons/new", "routes/admin.sports-seasons.new.tsx"),
|
|
route("sports-seasons/:id", "routes/admin.sports-seasons.$id.tsx"),
|
|
route("sports-seasons/:id/participants", "routes/admin.sports-seasons.$id.participants.tsx"),
|
|
route("participants", "routes/admin.participants.tsx"),
|
|
route("templates", "routes/admin.templates.tsx"),
|
|
route("templates/new", "routes/admin.templates.new.tsx"),
|
|
route("templates/:id", "routes/admin.templates.$id.tsx"),
|
|
route("data-sync", "routes/admin.data-sync.tsx"),
|
|
]),
|
|
route("api/admin/export-sports-data", "routes/api.admin.export-sports-data.ts"),
|
|
] satisfies RouteConfig;
|