Split routes into small files for easier customization (#1852)
This commit is contained in:
14
config/routes/debate.rb
Normal file
14
config/routes/debate.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
resources :debates do
|
||||
member do
|
||||
post :vote
|
||||
put :flag
|
||||
put :unflag
|
||||
put :mark_featured
|
||||
put :unmark_featured
|
||||
end
|
||||
|
||||
collection do
|
||||
get :map
|
||||
get :suggest
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user