diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-10 16:05:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-10 16:05:30 +0000 |
commit | 75129aaa1b12547c1d60b6bb8e0ae2c36483fcfe (patch) | |
tree | 9a461fb1edae8d03763980f7fe3ab858838dc1f2 /config/routes.rb | |
parent | 6d408b82618c7f85693a94e39c31bca2fae2c721 (diff) | |
download | redmine-75129aaa1b12547c1d60b6bb8e0ae2c36483fcfe.tar.gz redmine-75129aaa1b12547c1d60b6bb8e0ae2c36483fcfe.zip |
Clean up watchers routes declaration.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11342 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/config/routes.rb b/config/routes.rb index 19b08e1d8..2bed011df 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -77,13 +77,13 @@ RedmineApp::Application.routes.draw do match 'users/:id/memberships/:membership_id', :to => 'users#destroy_membership', :via => :delete match 'users/:id/memberships', :to => 'users#edit_membership', :via => :post, :as => 'user_memberships' - match 'watchers/new', :controller=> 'watchers', :action => 'new', :via => :get - match 'watchers', :controller=> 'watchers', :action => 'create', :via => :post - match 'watchers/append', :controller=> 'watchers', :action => 'append', :via => :post - match 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :via => :post - match 'watchers/watch', :controller=> 'watchers', :action => 'watch', :via => :post - match 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch', :via => :post - match 'watchers/autocomplete_for_user', :controller=> 'watchers', :action => 'autocomplete_for_user', :via => :get + get 'watchers/new', :to => 'watchers#new' + post 'watchers', :to => 'watchers#create' + post 'watchers/append', :to => 'watchers#append' + post 'watchers/destroy', :to => 'watchers#destroy' + post 'watchers/watch', :to => 'watchers#watch' + post 'watchers/unwatch', :to => 'watchers#unwatch' + get 'watchers/autocomplete_for_user', :to => 'watchers#autocomplete_for_user' # Specific routes for issue watchers API post 'issues/:object_id/watchers', :to => 'watchers#create', :object_type => 'issue' delete 'issues/:object_id/watchers/:user_id' => 'watchers#destroy', :object_type => 'issue' |