summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-15 18:45:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-15 18:45:09 +0000
commit486a4dfbc82a5ffc5dd89f94bb44edd5a7f127cd (patch)
tree3c0248f0299ad092dd3e6b9dec67db6c340a5d1f /config
parentbae4b1985d921d50799da8108657d4432a7f34f7 (diff)
downloadredmine-486a4dfbc82a5ffc5dd89f94bb44edd5a7f127cd.tar.gz
redmine-486a4dfbc82a5ffc5dd89f94bb44edd5a7f127cd.zip
Named routed for RSS/API keys (#20997).
git-svn-id: http://svn.redmine.org/redmine/trunk@14677 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 532546fda..d7ddac190 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -72,9 +72,9 @@ Rails.application.routes.draw do
match 'my/account/destroy', :controller => 'my', :action => 'destroy', :via => [:get, :post]
match 'my/page', :controller => 'my', :action => 'page', :via => :get
match 'my', :controller => 'my', :action => 'index', :via => :get # Redirects to my/page
- match 'my/reset_rss_key', :controller => 'my', :action => 'reset_rss_key', :via => :post
- match 'my/reset_api_key', :controller => 'my', :action => 'reset_api_key', :via => :post
- match 'my/api_key', :controller => 'my', :action => 'show_api_key', :via => :get
+ get 'my/api_key', :to => 'my#show_api_key', :as => 'my_api_key'
+ post 'my/api_key', :to => 'my#reset_api_key'
+ post 'my/rss_key', :to => 'my#reset_rss_key', :as => 'my_rss_key'
match 'my/password', :controller => 'my', :action => 'password', :via => [:get, :post]
match 'my/page_layout', :controller => 'my', :action => 'page_layout', :via => :get
match 'my/add_block', :controller => 'my', :action => 'add_block', :via => :post