mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Using action cable to send stats updates to the client and made a spectate page.
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
Wrestling::Application.routes.draw do
|
||||
# Mount Action Cable server
|
||||
mount ActionCable.server => '/cable'
|
||||
|
||||
resources :mats
|
||||
post "mats/:id/assign_next_match" => "mats#assign_next_match", :as => :assign_next_match
|
||||
|
||||
resources :matches
|
||||
resources :matches do
|
||||
member do
|
||||
get :stat
|
||||
get :spectate
|
||||
end
|
||||
end
|
||||
|
||||
# Replace devise_for :users with custom routes
|
||||
get '/login', to: 'sessions#new'
|
||||
@@ -89,8 +97,6 @@ Wrestling::Application.routes.draw do
|
||||
get "/api/index" => "api#index"
|
||||
post "/api/tournaments/new" => "newTournament"
|
||||
|
||||
get "/matches/:id/stat" => "matches#stat", :as => :stat_match_path
|
||||
|
||||
resources :tournaments do
|
||||
member do
|
||||
post :generate_school_keys
|
||||
|
||||
Reference in New Issue
Block a user