diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-10 16:10:53 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-10 16:10:53 +0000 |
commit | deffd81ada7107dafabf701d3df70f31ca3c743a (patch) | |
tree | 6debea122cf3888c2ce5e86b8bca65b918ea6c20 /config | |
parent | 75129aaa1b12547c1d60b6bb8e0ae2c36483fcfe (diff) | |
download | redmine-deffd81ada7107dafabf701d3df70f31ca3c743a.tar.gz redmine-deffd81ada7107dafabf701d3df70f31ca3c743a.zip |
Use POST/DELETE to watch/unwatch an item.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11343 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb index 2bed011df..f157f764c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -77,12 +77,12 @@ 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' + post 'watchers/watch', :to => 'watchers#watch', :as => 'watch' + delete 'watchers/watch', :to => 'watchers#unwatch' 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' |