change rooms#index to rooms#show

This commit is contained in:
Josh
2018-05-23 16:13:24 -04:00
parent 434021239c
commit 3dd7b33363
3 changed files with 6 additions and 15 deletions

View File

@ -3,10 +3,10 @@ Rails.application.routes.draw do
# Room routes.
scope '/r/:room_uid' do
get '/', to: 'rooms#show', as: :room
match '/start', to: 'rooms#start', as: :start_room, via: [:get, :post]
match '/join', to: 'rooms#join', as: :join_room, via: [:get, :post]
get '/start', to: 'rooms#start', as: :start_room
get '/join', to: 'rooms#join', as: :join_room
match '/wait', to: 'rooms#wait', as: :wait_room, via: [:get, :post]
match '/logout', to: 'rooms#logout', as: :logout_room, via: [:get, :post]
get '/logout', to: 'rooms#logout', as: :logout_room
get '/sessions', to: 'rooms#sessions', as: :sessions
end