Browse Source

route: code layout clean up admin route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8402 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/1.4.0
Toshi MARUYAMA 12 years ago
parent
commit
50d320a35e
1 changed files with 12 additions and 6 deletions
  1. 12
    6
      config/routes.rb

+ 12
- 6
config/routes.rb 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

Loading…
Cancel
Save