route: code layout clean up watchers route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8395 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-27 01:57:54 +00:00
parent e015a4a527
commit 79da00dc40
1 changed files with 8 additions and 4 deletions

View File

@ -141,10 +141,14 @@ ActionController::Routing::Routes.draw do |map|
map.connect 'news/:id/comments/:comment_id', :controller => 'comments', map.connect 'news/:id/comments/:comment_id', :controller => 'comments',
:action => 'destroy', :conditions => {:method => :delete} :action => 'destroy', :conditions => {:method => :delete}
map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', :conditions => {:method => [:get, :post]} map.connect 'watchers/new', :controller=> 'watchers', :action => 'new',
map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :conditions => {:method => :post} :conditions => {:method => [:get, :post]}
map.connect 'watchers/watch', :controller=> 'watchers', :action => 'watch', :conditions => {:method => :post} map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy',
map.connect 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch', :conditions => {:method => :post} :conditions => {:method => :post}
map.connect 'watchers/watch', :controller=> 'watchers', :action => 'watch',
:conditions => {:method => :post}
map.connect 'watchers/unwatch', :controller=> 'watchers', :action => 'unwatch',
:conditions => {:method => :post}
map.resources :projects, :member => { map.resources :projects, :member => {
:copy => [:get, :post], :copy => [:get, :post],