Created
April 27, 2012 07:18
-
-
Save sapient/2506836 to your computer and use it in GitHub Desktop.
Forum routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace :forum do | |
resources :forums do | |
collection do | |
get 'sort' | |
post 'update_sort' | |
end | |
end | |
resources :topics do | |
member do | |
get 'lock' | |
get 'unlock' | |
get 'subscribe' | |
end | |
end | |
match 'unsubscribe' => 'topics#unsubscribe', :via => [:get] | |
resources :posts do | |
member do | |
get 'new_with_quote' | |
post 'report' | |
end | |
end | |
resources :reported_posts | |
match 'search' => 'search#search', :via => [:get] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment