Browse Source

Changed /my/show_api_key route to /my/api_key (#19851).

git-svn-id: http://svn.redmine.org/redmine/trunk@14334 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.1.0
Jean-Philippe Lang 9 years ago
parent
commit
ef91a50cc2
2 changed files with 2 additions and 1 deletions
  1. 1
    1
      config/routes.rb
  2. 1
    0
      test/integration/routing/my_test.rb

+ 1
- 1
config/routes.rb View File

@@ -67,7 +67,7 @@ Rails.application.routes.draw do
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/show_api_key', :controller => 'my', :action => 'show_api_key', :via => :get
match 'my/api_key', :controller => 'my', :action => 'show_api_key', :via => :get
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

+ 1
- 0
test/integration/routing/my_test.rb View File

@@ -30,6 +30,7 @@ class RoutingMyTest < Redmine::RoutingTest

should_route 'POST /my/reset_rss_key' => 'my#reset_rss_key'
should_route 'POST /my/reset_api_key' => 'my#reset_api_key'
should_route 'GET /my/api_key' => 'my#show_api_key'

should_route 'GET /my/password' => 'my#password'
should_route 'POST /my/password' => 'my#password'

Loading…
Cancel
Save