|
|
|
@ -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] |
|
|
|
|