summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-27 10:05:29 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-12-27 10:05:29 +0000
commit50d320a35ecb2b3d08df8092bc10b0f4a4216e26 (patch)
tree880fe27cd4170f0e174b3bb4314e3e8029b38c5b /config/routes.rb
parentd9425b8229eb543008bf543c5356e18a953c280b (diff)
downloadredmine-50d320a35ecb2b3d08df8092bc10b0f4a4216e26.tar.gz
redmine-50d320a35ecb2b3d08df8092bc10b0f4a4216e26.zip
route: code layout clean up admin route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8402 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb18
1 files changed, 12 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 30b1c02c9..ede101e31 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -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