diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-29 16:14:54 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-29 16:14:54 +0000 |
commit | 97ae34c2619e0b36d66dbfbc9e4b57a3b3bee83d (patch) | |
tree | 28fbeba8a04fdd8372dd00530804beeccfe204ad /config/routes.rb | |
parent | 670340e543cecafbd7c6f89e3113d7b06858e0bb (diff) | |
download | redmine-97ae34c2619e0b36d66dbfbc9e4b57a3b3bee83d.tar.gz redmine-97ae34c2619e0b36d66dbfbc9e4b57a3b3bee83d.zip |
Use shorter syntax for admin routes.
git-svn-id: http://svn.redmine.org/redmine/trunk@14390 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb index 7e8ebeb84..5b6783a6b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -320,12 +320,12 @@ Rails.application.routes.draw do get 'mail_handler', :to => 'mail_handler#new' post 'mail_handler', :to => 'mail_handler#index' - match 'admin', :controller => 'admin', :action => 'index', :via => :get - match 'admin/projects', :controller => 'admin', :action => 'projects', :via => :get - match 'admin/plugins', :controller => 'admin', :action => 'plugins', :via => :get - match 'admin/info', :controller => 'admin', :action => 'info', :via => :get - match 'admin/test_email', :controller => 'admin', :action => 'test_email', :via => :post - match 'admin/default_configuration', :controller => 'admin', :action => 'default_configuration', :via => :post + get 'admin', :to => 'admin#index' + get 'admin/projects', :to => 'admin#projects' + get 'admin/plugins', :to => 'admin#plugins' + get 'admin/info', :to => 'admin#info' + post 'admin/test_email', :to => 'admin#test_email' + post 'admin/default_configuration', :to => 'admin#default_configuration' resources :auth_sources do member do |