From 50d320a35ecb2b3d08df8092bc10b0f4a4216e26 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Tue, 27 Dec 2011 10:05:29 +0000 Subject: [PATCH] route: code layout clean up admin route git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8402 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- config/routes.rb | 18 ++++++++++++------ 1 file 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