foodsoft/plugins/wiki/config/routes.rb

17 lines
431 B
Ruby
Raw 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
2016-03-06 21:05:06 +01:00
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