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