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
This commit is contained in:
Jean-Philippe Lang committed 2013-01-30 20:51:21 +00:00
1 parent f2fd78f7b8
commit a0158eff96
5 files changed
+82 -6

No files matched your search

+3
View File
@@ -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