route: code layout clean up 'my' route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8368 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
14760e7a5b
commit
f655fe35a7
|
@ -76,16 +76,27 @@ ActionController::Routing::Routes.draw do |map|
|
|||
reports.connect 'projects/:id/issues/report/:detail', :action => 'issue_report_details'
|
||||
end
|
||||
|
||||
map.connect 'my/account', :controller => 'my', :action => 'account', :conditions => {:method => [:get, :post]}
|
||||
map.connect 'my/page', :controller => 'my', :action => 'page', :conditions => {:method => :get}
|
||||
map.connect 'my', :controller => 'my', :action => 'index', :conditions => {:method => :get} # Redirects to my/page
|
||||
map.connect 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key', :conditions => {:method => :post}
|
||||
map.connect 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key', :conditions => {:method => :post}
|
||||
map.connect 'my/password', :controller => 'my', :action => 'password', :conditions => {:method => [:get, :post]}
|
||||
map.connect 'my/page_layout', :controller => 'my', :action => 'page_layout', :conditions => {:method => :get}
|
||||
map.connect 'my/add_block', :controller => 'my', :action => 'add_block', :conditions => {:method => :post}
|
||||
map.connect 'my/remove_block', :controller => 'my', :action => 'remove_block', :conditions => {:method => :post}
|
||||
map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks', :conditions => {:method => :post}
|
||||
map.connect 'my/account', :controller => 'my', :action => 'account',
|
||||
:conditions => {:method => [:get, :post]}
|
||||
map.connect 'my/page', :controller => 'my', :action => 'page',
|
||||
:conditions => {:method => :get}
|
||||
# Redirects to my/page
|
||||
map.connect 'my', :controller => 'my', :action => 'index',
|
||||
:conditions => {:method => :get}
|
||||
map.connect 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key',
|
||||
:conditions => {:method => :post}
|
||||
map.connect 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key',
|
||||
:conditions => {:method => :post}
|
||||
map.connect 'my/password', :controller => 'my', :action => 'password',
|
||||
:conditions => {:method => [:get, :post]}
|
||||
map.connect 'my/page_layout', :controller => 'my', :action => 'page_layout',
|
||||
:conditions => {:method => :get}
|
||||
map.connect 'my/add_block', :controller => 'my', :action => 'add_block',
|
||||
:conditions => {:method => :post}
|
||||
map.connect 'my/remove_block', :controller => 'my', :action => 'remove_block',
|
||||
:conditions => {:method => :post}
|
||||
map.connect 'my/order_blocks', :controller => 'my', :action => 'order_blocks',
|
||||
:conditions => {:method => :post}
|
||||
|
||||
map.resources :issues, :collection => {:bulk_edit => :get, :bulk_update => :post} do |issues|
|
||||
issues.resources :time_entries, :controller => 'timelog', :collection => {:report => :get}
|
||||
|
|
Loading…
Reference in New Issue