Clean up watchers routes declaration.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11342 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6d408b8261
commit
75129aaa1b
|
@ -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/:membership_id', :to => 'users#destroy_membership', :via => :delete
|
||||||
match 'users/:id/memberships', :to => 'users#edit_membership', :via => :post, :as => 'user_memberships'
|
match 'users/:id/memberships', :to => 'users#edit_membership', :via => :post, :as => 'user_memberships'
|
||||||
|
|
||||||
match 'watchers/new', :controller=> 'watchers', :action => 'new', :via => :get
|
get 'watchers/new', :to => 'watchers#new'
|
||||||
match 'watchers', :controller=> 'watchers', :action => 'create', :via => :post
|
post 'watchers', :to => 'watchers#create'
|
||||||
match 'watchers/append', :controller=> 'watchers', :action => 'append', :via => :post
|
post 'watchers/append', :to => 'watchers#append'
|
||||||
match 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :via => :post
|
post 'watchers/destroy', :to => 'watchers#destroy'
|
||||||
match 'watchers/watch', :controller=> 'watchers', :action => 'watch', :via => :post
|
post 'watchers/watch', :to => 'watchers#watch'
|
||||||
match 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch', :via => :post
|
post 'watchers/unwatch', :to => 'watchers#unwatch'
|
||||||
match 'watchers/autocomplete_for_user', :controller=> 'watchers', :action => 'autocomplete_for_user', :via => :get
|
get 'watchers/autocomplete_for_user', :to => 'watchers#autocomplete_for_user'
|
||||||
# Specific routes for issue watchers API
|
# Specific routes for issue watchers API
|
||||||
post 'issues/:object_id/watchers', :to => 'watchers#create', :object_type => 'issue'
|
post 'issues/:object_id/watchers', :to => 'watchers#create', :object_type => 'issue'
|
||||||
delete 'issues/:object_id/watchers/:user_id' => 'watchers#destroy', :object_type => 'issue'
|
delete 'issues/:object_id/watchers/:user_id' => 'watchers#destroy', :object_type => 'issue'
|
||||||
|
|
Loading…
Reference in New Issue