mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-21 06:22:00 +00:00
New stats page, scoreboard, and live scores pages.
This commit is contained in:
@@ -19,6 +19,13 @@ pin "bootstrap", to: "bootstrap.min.js"
|
||||
|
||||
# Pin controllers from app/assets/javascripts/controllers
|
||||
pin_all_from "app/assets/javascripts/controllers", under: "controllers"
|
||||
pin "match-state-config", to: "lib/match_state/config.js"
|
||||
pin "match-state-engine", to: "lib/match_state/engine.js"
|
||||
pin "match-state-serializers", to: "lib/match_state/serializers.js"
|
||||
pin "match-state-presenters", to: "lib/match_state/presenters.js"
|
||||
pin "match-state-transport", to: "lib/match_state/transport.js"
|
||||
pin "match-state-scoreboard-presenters", to: "lib/match_state/scoreboard_presenters.js"
|
||||
pin "match-state-scoreboard-state", to: "lib/match_state/scoreboard_state.js"
|
||||
|
||||
# Pin all JS files from app/assets/javascripts directory
|
||||
pin_all_from "app/assets/javascripts", under: "assets/javascripts"
|
||||
|
||||
@@ -3,12 +3,19 @@ Wrestling::Application.routes.draw do
|
||||
mount ActionCable.server => '/cable'
|
||||
mount MissionControl::Jobs::Engine, at: "/jobs"
|
||||
|
||||
resources :mats
|
||||
resources :mats do
|
||||
member do
|
||||
get :state
|
||||
get :scoreboard
|
||||
post :select_match
|
||||
end
|
||||
end
|
||||
post "mats/:id/assign_next_match" => "mats#assign_next_match", :as => :assign_next_match
|
||||
|
||||
resources :matches do
|
||||
member do
|
||||
get :stat
|
||||
get :state
|
||||
get :spectate
|
||||
get :edit_assignment
|
||||
patch :update_assignment
|
||||
@@ -74,6 +81,7 @@ Wrestling::Application.routes.draw do
|
||||
get 'tournaments/:id/no_matches' => 'tournaments#no_matches'
|
||||
get 'tournaments/:id/matches' => 'tournaments#matches'
|
||||
get 'tournaments/:id/qrcode' => 'tournaments#qrcode'
|
||||
get 'tournaments/:id/live_scores' => 'tournaments#live_scores'
|
||||
get 'tournaments/:id/delegate' => 'tournaments#delegate', :as => :tournament_delegate
|
||||
post 'tournaments/:id/delegate' => 'tournaments#delegate', :as => :set_tournament_delegate
|
||||
delete 'tournaments/:id/:delegate/remove_delegate' => 'tournaments#remove_delegate', :as => :delete_delegate_path
|
||||
|
||||
Reference in New Issue
Block a user