summaryrefslogtreecommitdiffstats
path: root/config/routes.rb
diff options
context:
space:
mode:
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