Simplify routes.rb
This commit is contained in:
parent
9964622548
commit
1f910b8746
|
|
@ -1,15 +1,12 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
|
resources :controllers
|
||||||
mount_devise_token_auth_for 'User', at: 'users'
|
mount_devise_token_auth_for 'User', at: 'users'
|
||||||
|
|
||||||
post '/tournaments', to: 'tournament#post'
|
resources :tournaments
|
||||||
get '/tournaments/:code', to: 'tournament#get'
|
|
||||||
put '/tournaments/:code', to: 'tournament#put'
|
|
||||||
|
|
||||||
get '/matches/:id', to: 'match#get'
|
resources :matches
|
||||||
put '/matches/:id', to: 'match#put'
|
|
||||||
|
|
||||||
get '/teams/:id', to: 'team#get'
|
resources :teams
|
||||||
put '/teams/:id', to: 'team#put'
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue