mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 13:16:46 +02:00
route: code layout clean up comments route
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8379 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -130,8 +130,10 @@ ActionController::Routing::Routes.draw do |map|
|
||||
map.connect 'news', :controller => 'news', :action => 'index'
|
||||
map.connect 'news.:format', :controller => 'news', :action => 'index'
|
||||
map.preview_news '/news/preview', :controller => 'previews', :action => 'news'
|
||||
map.connect 'news/:id/comments', :controller => 'comments', :action => 'create', :conditions => {:method => :post}
|
||||
map.connect 'news/:id/comments/:comment_id', :controller => 'comments', :action => 'destroy', :conditions => {:method => :delete}
|
||||
map.connect 'news/:id/comments', :controller => 'comments',
|
||||
:action => 'create', :conditions => {:method => :post}
|
||||
map.connect 'news/:id/comments/:comment_id', :controller => 'comments',
|
||||
:action => 'destroy', :conditions => {:method => :delete}
|
||||
|
||||
map.connect 'watchers/new', :controller=> 'watchers', :action => 'new', :conditions => {:method => [:get, :post]}
|
||||
map.connect 'watchers/destroy', :controller=> 'watchers', :action => 'destroy', :conditions => {:method => :post}
|
||||
|
||||
Reference in New Issue
Block a user