Remove redundant user routes
This commit is contained in:
parent
bf0e88a5fc
commit
9964622548
|
|
@ -3,12 +3,6 @@
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
mount_devise_token_auth_for 'User', at: 'users'
|
mount_devise_token_auth_for 'User', at: 'users'
|
||||||
|
|
||||||
post '/users', to: 'user#create'
|
|
||||||
post '/users/sign_in', to: 'user#sign_in'
|
|
||||||
get '/users/:username', to: 'user#get'
|
|
||||||
put '/users/:username', to: 'user#put'
|
|
||||||
delete '/users/:username', to: 'user#delete'
|
|
||||||
|
|
||||||
post '/tournaments', to: 'tournament#post'
|
post '/tournaments', to: 'tournament#post'
|
||||||
get '/tournaments/:code', to: 'tournament#get'
|
get '/tournaments/:code', to: 'tournament#get'
|
||||||
put '/tournaments/:code', to: 'tournament#put'
|
put '/tournaments/:code', to: 'tournament#put'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue