2013-11-02 10:57:37 +01:00
|
|
|
Rails.application.routes.draw do
|
|
|
|
|
|
|
|
scope '/:foodcoop' do
|
|
|
|
|
|
|
|
resources :pages do
|
|
|
|
get :all, :on => :collection
|
|
|
|
get :version, :on => :member
|
|
|
|
get :revert, :on => :member
|
|
|
|
end
|
2014-02-20 15:04:53 +01:00
|
|
|
get '/wiki/:permalink' => 'pages#show', :as => 'wiki_page' # , :constraints => {:permalink => /[^\s]+/}
|
|
|
|
get '/wiki' => 'pages#show', :defaults => {:permalink => 'Home'}, :as => 'wiki'
|
2013-11-02 10:57:37 +01:00
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|