OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/config/routes.rb

36 lines
1.1 KiB

#custom routes for this plugin
12 years ago
OpenProject::Application.routes.draw do
resources :projects, only: [] do
shallow do
resources :meetings do
member do
12 years ago
get :copy
end
12 years ago
resource :agenda, :controller => 'meeting_agendas', :only => [:update] do
member do
get :history
get :diff
put :close
put :open
put :notify
post :preview
end
end
resource :minutes, :controller => 'meeting_minutes', :only => [:update] do
member do
get :history
get :diff
put :notify
post :preview
end
end
end
end
end
match '/meetings/:id/:tab' => 'meetings#show', :constraints => { :tab => /(agenda|minutes)/ }, :via => :get
match '/meetings/:meeting_id/agenda/:version' => 'meeting_agendas#show', :constraints => { :version => /\d/ }, :via => :get
match '/meetings/:meeting_id/minutes/:version' => 'meeting_minutes#show', :constraints => { :version => /\d/ }, :via => :get
match '/projects/:project_id/meetings' => 'meetings#new', :via => :put
end