- 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.
69 lines
2.9 KiB
TypeScript
69 lines
2.9 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(
|
|
"leagues/:leagueId/draft/:seasonId",
|
|
"routes/leagues/$leagueId.draft.$seasonId.tsx"
|
|
),
|
|
route(
|
|
"leagues/:leagueId/draft-board/:seasonId",
|
|
"routes/leagues/$leagueId.draft-board.$seasonId.tsx"
|
|
),
|
|
route("teams/:teamId/settings", "routes/teams/$teamId.settings.tsx"),
|
|
route("api/webhooks/clerk", "routes/api/webhooks/clerk.ts"),
|
|
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"),
|
|
route("api/draft/make-pick", "routes/api/draft.make-pick.ts"),
|
|
route("api/draft/start", "routes/api/draft.start.ts"),
|
|
route("api/draft/pause", "routes/api/draft.pause.ts"),
|
|
route("api/draft/resume", "routes/api/draft.resume.ts"),
|
|
route("api/draft/force-autopick", "routes/api/draft.force-autopick.ts"),
|
|
route("api/draft/force-manual-pick", "routes/api/draft.force-manual-pick.ts"),
|
|
route("api/autodraft/update", "routes/api/autodraft.update.ts"),
|
|
route("user-profile", "routes/user-profile.tsx"),
|
|
route("how-to-play", "routes/how-to-play.tsx"),
|
|
route("test-socket", "routes/test-socket.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(
|
|
"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"
|
|
),
|
|
route(
|
|
"sports-seasons/:id/events/:eventId/bracket",
|
|
"routes/admin.sports-seasons.$id.events.$eventId.bracket.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;
|