Files
euchre_camp/config/routes.rb
T
david 1268889a78 Add Elo rating system with match entry and CSV upload
- Implement EloCalculator service for 2v2 Euchre matches
- Create background job processing with GoodJob
- Add single match entry form
- Add CSV upload for batch match entry
- Create player rankings view
- Add database schema for matches and elo snapshots
2026-03-26 16:28:24 -07:00

26 lines
956 B
Ruby

# frozen_string_literal: true
module EuchreCamp
class Routes < Hanami::Routes
# Add your routes here. See https://guides.hanamirb.org/routing/overview/ for details.
get "/players/:id", to: "players.show"
get "/rankings", to: "players.rankings"
get "/admin/players/new", to: "admin.players.new"
post "/admin/players", to: "admin.players.create"
get "/admin/players", to: "admin.players.index"
get "/admin/players/:id/edit", to: "admin.players.edit"
patch "/admin/players/:id", to: "admin.players.update"
delete "/admin/players/:id", to: "admin.players.destroy"
# Match routes
get "/admin/matches/new", to: "admin.matches.new"
post "/admin/matches", to: "admin.matches.create"
get "/admin/matches", to: "admin.matches.index"
# CSV Upload routes
get "/admin/matches/upload", to: "admin.matches.upload"
post "/admin/matches/process_upload", to: "admin.matches.process_upload"
end
end