foodsoft/plugins/wiki/config/routes.rb

13 lines
414 B
Ruby
Raw Permalink Normal View History

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
get :diff, on: :member
2013-11-02 10:57:37 +01:00
end
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