route: code layout clean up admin route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8402 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-27 10:05:29 +00:00
parent d9425b8229
commit 50d320a35e
1 changed files with 12 additions and 6 deletions

View File

@ -271,12 +271,18 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'mail_handler', :controller => 'mail_handler',
:action => 'index', :conditions => {:method => :post}
map.connect 'admin', :controller => 'admin', :action => 'index', :conditions => {:method => :get}
map.connect 'admin/projects', :controller => 'admin', :action => 'projects', :conditions => {:method => :get}
map.connect 'admin/plugins', :controller => 'admin', :action => 'plugins', :conditions => {:method => :get}
map.connect 'admin/info', :controller => 'admin', :action => 'info', :conditions => {:method => :get}
map.connect 'admin/test_email', :controller => 'admin', :action => 'test_email', :conditions => {:method => :get}
map.connect 'admin/default_configuration', :controller => 'admin', :action => 'default_configuration', :conditions => {:method => :post}
map.connect 'admin', :controller => 'admin', :action => 'index',
:conditions => {:method => :get}
map.connect 'admin/projects', :controller => 'admin', :action => 'projects',
:conditions => {:method => :get}
map.connect 'admin/plugins', :controller => 'admin', :action => 'plugins',
:conditions => {:method => :get}
map.connect 'admin/info', :controller => 'admin', :action => 'info',
:conditions => {:method => :get}
map.connect 'admin/test_email', :controller => 'admin', :action => 'test_email',
:conditions => {:method => :get}
map.connect 'admin/default_configuration', :controller => 'admin',
:action => 'default_configuration', :conditions => {:method => :post}
# Used by AuthSourcesControllerTest
# TODO : refactor *AuthSourcesController to remove these routes