adapt wiki routes to rails3

pull/1186/head
Philipp Tessenow 12 years ago committed by Jens Ulferts
parent 26c362f649
commit b7bbf52465
  1. 24
      config/routes.rb

@ -129,16 +129,20 @@ OpenProject::Application.routes.draw do
match '/wiki/:id/diff/:version' => 'wiki#diff', :as => 'wiki_diff'
match '/wiki/:id/diff/:version/vs/:version_from' => 'wiki#diff', :as => 'wiki_diff'
match '/wiki/:id/annotate/:version' => 'wiki#annotate', :as => 'wiki_annotate'
resources :wiki, :except => [:new, :create], :member => {
:rename => [:get, :post],
:history => :get,
:preview => :any,
:protect => :post,
:add_attachment => :post
}, :collection => {
:export => :get,
:date_index => :get
}
resources :wiki, :except => [:new, :create] do
member do
match :rename, :via => [:get, :post]
get :history
match :preview
post :protect
post :add_attachment
end
collection do
get :export
get :date_index
end
end
namespace :issues do
resources :gantt, :controller => 'gantts', :only => [:index]

Loading…
Cancel
Save