add missing routes to wiki plugin
This commit is contained in:
parent
fa0102fed5
commit
841cdad010
1 changed files with 15 additions and 0 deletions
15
lib/foodsoft_wiki/config/routes.rb
Normal file
15
lib/foodsoft_wiki/config/routes.rb
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
Rails.application.routes.draw do
|
||||||
|
|
||||||
|
scope '/:foodcoop' do
|
||||||
|
|
||||||
|
resources :pages do
|
||||||
|
get :all, :on => :collection
|
||||||
|
get :version, :on => :member
|
||||||
|
get :revert, :on => :member
|
||||||
|
end
|
||||||
|
match '/wiki/:permalink' => 'pages#show', :as => 'wiki_page' # , :constraints => {:permalink => /[^\s]+/}
|
||||||
|
match '/wiki' => 'pages#show', :defaults => {:permalink => 'Home'}, :as => 'wiki'
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in a new issue