summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-30 20:51:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-30 20:51:21 +0000
commita0158eff9643b836488bf40667669d07d8653429 (patch)
tree3bdf34a6bb3e2ad3114f3e0d3deaa371d5716abb /config/routes.rb
parentf2fd78f7b868c184e4ab2058e41a27043640843a (diff)
downloadredmine-a0158eff9643b836488bf40667669d07d8653429.tar.gz
redmine-a0158eff9643b836488bf40667669d07d8653429.zip
Add/remove issue watchers via the REST API (#6727).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11290 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 061bdf7ba..19b08e1d8 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -84,6 +84,9 @@ RedmineApp::Application.routes.draw do
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
+ # 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'
resources :projects do
member do