Aggiunge i tornei con hub, pagina pubblica e tabellone per semifinali e finali.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-05 15:05:57 +02:00
co-authored by Cursor
parent d52434fb2e
commit a1f4c24a43
124 changed files with 6979 additions and 91 deletions
+29
View File
@@ -158,6 +158,9 @@ Rails.application.routes.draw do
get "squadre", to: "public/team_pages#index", as: :public_team_pages
get "squadre/:slug", to: "public/team_pages#show", as: :public_team_page,
constraints: { slug: /[a-z0-9]+(?:-[a-z0-9]+)*/ }
get "tornei", to: "public/tournament_pages#index", as: :public_tournament_pages
get "tornei/:slug", to: "public/tournament_pages#show", as: :public_tournament_page,
constraints: { slug: /[a-z0-9]+(?:-[a-z0-9]+)*/ }
get "replay", to: "public/replay#index", as: :public_replay_index
get "replay/:id", to: "public/replay#show", as: :public_replay
get "replay/:id/stream", to: "public/replay#stream", as: :public_replay_stream
@@ -228,6 +231,32 @@ Rails.application.routes.draw do
get "teams/new", to: redirect("/clubs/new")
get "clubs/:club_id/teams/new", to: "teams#new", as: :new_club_team
post "clubs/:club_id/teams", to: "teams#create", as: :club_teams
get "clubs/:club_id/tournaments", to: "tournaments#index", as: :club_tournaments
get "clubs/:club_id/tournaments/new", to: "tournaments#new", as: :new_club_tournament
post "clubs/:club_id/tournaments", to: "tournaments#create"
get "tournaments/:id", to: "tournaments#show", as: :tournament
patch "tournaments/:id", to: "tournaments#update"
delete "tournaments/:id", to: "tournaments#destroy"
post "tournaments/:id/publish", to: "tournaments#publish", as: :publish_tournament
post "tournaments/:id/unpublish", to: "tournaments#unpublish", as: :unpublish_tournament
post "tournaments/:id/archive", to: "tournaments#archive", as: :archive_tournament
post "tournaments/:id/generate_group_matches", to: "tournaments#generate_group_matches", as: :generate_group_matches_tournament
post "tournaments/:id/propose_knockout", to: "tournaments#propose_knockout", as: :propose_knockout_tournament
post "tournaments/:id/participants", to: "tournament_participants#create", as: :tournament_participants
patch "tournaments/:id/participants/:participant_id", to: "tournament_participants#update", as: :tournament_participant
delete "tournaments/:id/participants/:participant_id", to: "tournament_participants#destroy"
post "tournaments/:id/groups", to: "tournament_groups#create", as: :tournament_groups
delete "tournaments/:id/groups/:group_id", to: "tournament_groups#destroy", as: :tournament_group
post "tournaments/:id/matches", to: "tournament_matches#create", as: :tournament_matches
patch "tournaments/:id/matches/:match_id", to: "tournament_matches#update", as: :tournament_match
post "tournaments/:id/matches/:match_id/swap", to: "tournament_matches#swap", as: :swap_tournament_match
delete "tournaments/:id/matches/:match_id", to: "tournament_matches#destroy"
post "tournaments/:id/matches/:match_id/result", to: "tournament_results#create", as: :tournament_match_result
post "tournaments/:id/invitations", to: "tournament_invitations#create", as: :tournament_invitations
post "tournaments/:id/invite_draft", to: "tournament_invitations#save_draft", as: :tournament_invite_draft
post "tournaments/:id/invite_images", to: "tournament_invitations#upload_image", as: :tournament_invite_images
delete "tournaments/:id/invitations/:invitation_id", to: "tournament_invitations#destroy", as: :tournament_invitation
delete "tournaments/:id/assignments/:assignment_id", to: "tournament_assignments#destroy", as: :tournament_assignment
get "teams/:id/dettagli", to: "teams#details", as: :team_details
get "teams/:id/dashboard", to: "teams#dashboard"
get "teams/:id/roster", to: "teams#roster"