2025-10-11 00:07:39 -07:00
|
|
|
import { type RouteConfig, index, route } from "@react-router/dev/routes";
|
2025-10-10 23:04:50 -07:00
|
|
|
|
2025-10-11 00:07:39 -07:00
|
|
|
export default [
|
|
|
|
|
index("routes/home.tsx"),
|
2025-10-14 12:20:36 -07:00
|
|
|
route("i/:inviteCode", "routes/i.$inviteCode.tsx"),
|
2025-10-11 00:07:39 -07:00
|
|
|
route("leagues/new", "routes/leagues/new.tsx"),
|
|
|
|
|
route("leagues/:leagueId", "routes/leagues/$leagueId.tsx"),
|
2025-10-11 00:29:04 -07:00
|
|
|
route("leagues/:leagueId/settings", "routes/leagues/$leagueId.settings.tsx"),
|
2025-10-17 12:30:58 -07:00
|
|
|
route(
|
|
|
|
|
"leagues/:leagueId/draft/:seasonId",
|
|
|
|
|
"routes/leagues/$leagueId.draft.$seasonId.tsx"
|
|
|
|
|
),
|
2025-10-14 22:04:37 -07:00
|
|
|
route("teams/:teamId/settings", "routes/teams/$teamId.settings.tsx"),
|
2025-10-11 00:53:39 -07:00
|
|
|
route("api/webhooks/clerk", "routes/api/webhooks/clerk.ts"),
|
|
|
|
|
route("user-profile", "routes/user-profile.tsx"),
|
2025-10-12 16:42:15 -07:00
|
|
|
route("how-to-play", "routes/how-to-play.tsx"),
|
2025-10-17 12:15:07 -07:00
|
|
|
route("test-socket", "routes/test-socket.tsx"),
|
|
|
|
|
|
2025-10-12 21:54:49 -07:00
|
|
|
// 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"),
|
2025-10-13 10:04:32 -07:00
|
|
|
route("sports/:id", "routes/admin.sports.$id.tsx"),
|
2025-10-12 21:54:49 -07:00
|
|
|
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"),
|
2025-10-17 12:15:07 -07:00
|
|
|
route(
|
|
|
|
|
"sports-seasons/:id/participants",
|
|
|
|
|
"routes/admin.sports-seasons.$id.participants.tsx"
|
|
|
|
|
),
|
2025-10-12 21:54:49 -07:00
|
|
|
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"),
|
|
|
|
|
]),
|
2025-10-17 12:15:07 -07:00
|
|
|
route(
|
|
|
|
|
"api/admin/export-sports-data",
|
|
|
|
|
"routes/api.admin.export-sports-data.ts"
|
|
|
|
|
),
|
2025-10-11 00:07:39 -07:00
|
|
|
] satisfies RouteConfig;
|