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

31 lines
1.5 KiB

13 years ago
ActionController::Routing::Routes.draw do |map|
map.connect 'projects/new', :controller => 'projects', :action => 'new'
Project::RESERVED_IDENTIFIERS.each do |reserved_identifier|
map.connect 'projects/:reservation.:format',
:controller => 'projects',
:action => reserved_identifier,
:conditions => {:method => :get},
:reservation => Regexp.new(reserved_identifier),
:format => /\w+/
end
map.connect 'projects/:id.:format',
:controller => 'projects',
:action => 'show',
:conditions => {:method => :get},
:id => /\w+/,
:format => /\w+/
map.with_options :controller => 'my_projects_overviews'do |my|
my.connect 'projects/:id', :action => 'index', :id => /[^\/]+/, :conditions => {:method => :get}
my.connect 'my_projects_overview/:id/page_layout', :action => 'page_layout'
my.connect 'my_projects_overview/:id/page_layout/add_block', :action => 'add_block'
my.connect 'my_projects_overview/:id/page_layout/remove_block', :action => 'remove_block'
my.connect 'my_projects_overview/:id/page_layout/order_blocks', :action => 'order_blocks'
my.connect 'my_projects_overview/:id/page_layout/update_custom_element', :action => 'update_custom_element'
my.connect 'my_projects_overview/:id/page_layout/destroy_attachment', :action => 'destroy_attachment', :conditions => {:method => :post}
13 years ago
end
end