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-11-12 23:44:33 -08:00
|
|
|
route(
|
|
|
|
|
"leagues/:leagueId/sports-seasons/:sportsSeasonId",
|
|
|
|
|
"routes/leagues/$leagueId.sports-seasons.$sportsSeasonId.tsx"
|
|
|
|
|
),
|
2025-10-17 12:30:58 -07:00
|
|
|
route(
|
|
|
|
|
"leagues/:leagueId/draft/:seasonId",
|
|
|
|
|
"routes/leagues/$leagueId.draft.$seasonId.tsx"
|
|
|
|
|
),
|
2025-10-20 15:03:11 -07:00
|
|
|
route(
|
|
|
|
|
"leagues/:leagueId/draft-board/:seasonId",
|
|
|
|
|
"routes/leagues/$leagueId.draft-board.$seasonId.tsx"
|
|
|
|
|
),
|
2025-11-13 13:24:03 -08:00
|
|
|
route(
|
|
|
|
|
"leagues/:leagueId/standings/:seasonId",
|
|
|
|
|
"routes/leagues/$leagueId.standings.$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"),
|
2025-10-17 17:42:40 -07:00
|
|
|
route("api/queue/add", "routes/api/queue.add.ts"),
|
|
|
|
|
route("api/queue/remove", "routes/api/queue.remove.ts"),
|
|
|
|
|
route("api/queue/clear", "routes/api/queue.clear.ts"),
|
|
|
|
|
route("api/queue/reorder", "routes/api/queue.reorder.ts"),
|
2025-10-18 14:55:26 -07:00
|
|
|
route("api/draft/make-pick", "routes/api/draft.make-pick.ts"),
|
|
|
|
|
route("api/draft/start", "routes/api/draft.start.ts"),
|
2025-10-18 23:19:41 -07:00
|
|
|
route("api/draft/pause", "routes/api/draft.pause.ts"),
|
|
|
|
|
route("api/draft/resume", "routes/api/draft.resume.ts"),
|
2025-10-18 14:55:26 -07:00
|
|
|
route("api/draft/force-autopick", "routes/api/draft.force-autopick.ts"),
|
|
|
|
|
route("api/draft/force-manual-pick", "routes/api/draft.force-manual-pick.ts"),
|
2025-10-25 10:04:21 -07:00
|
|
|
route("api/autodraft/update", "routes/api/autodraft.update.ts"),
|
2025-10-11 00:53:39 -07:00
|
|
|
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-31 22:13:12 -07:00
|
|
|
route(
|
|
|
|
|
"sports-seasons/:id/events",
|
|
|
|
|
"routes/admin.sports-seasons.$id.events.tsx"
|
|
|
|
|
),
|
|
|
|
|
route(
|
|
|
|
|
"sports-seasons/:id/events/:eventId",
|
|
|
|
|
"routes/admin.sports-seasons.$id.events.$eventId.tsx"
|
|
|
|
|
),
|
feat: Implement bracket expansion plan to support various tournament structures
- Added a comprehensive plan for bracket expansion, including support for 4, 8, 16, 32, and 68 team formats.
- Introduced a template-based bracket system with predefined templates for NCAA March Madness, NFL Playoffs, NBA Playoffs, and simple brackets.
- Updated UI flow for bracket creation, allowing admins to select templates and assign participants flexibly.
- Enhanced database schema to accommodate new scoring rules and bracket templates.
- Proposed updates to scoring logic to handle non-scoring rounds and participant placements correctly.
- Documented implementation phases for gradual rollout of new features.
- Addressed critical bugs in the playoff event processing and scoring logic, ensuring proper advancement and scoring rules across multiple leagues.
2025-11-03 09:36:16 -08:00
|
|
|
route(
|
|
|
|
|
"sports-seasons/:id/events/:eventId/bracket",
|
|
|
|
|
"routes/admin.sports-seasons.$id.events.$eventId.bracket.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;
|