route: code layout clean up repositories route

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8471 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2012-01-02 13:26:00 +00:00
parent a9f25961af
commit 888f9fd5e1
1 changed files with 10 additions and 5 deletions

View File

@ -244,7 +244,8 @@ ActionController::Routing::Routes.draw do |map|
:action => 'diff'
repository_views.connect 'projects/:id/repository/revisions/:rev/raw/*path',
:action => 'entry',
:format => 'raw', :requirements => { :rev => /[a-z0-9\.\-_]+/ }
:format => 'raw',
:requirements => { :rev => /[a-z0-9\.\-_]+/ }
repository_views.connect 'projects/:id/repository/revisions/:rev/:action/*path',
:requirements => { :rev => /[a-z0-9\.\-_]+/ }
@ -266,14 +267,18 @@ ActionController::Routing::Routes.draw do |map|
:action => 'graph'
end
repositories.connect 'projects/:id/repository/revision', :action => 'revision',
repositories.connect 'projects/:id/repository/revision',
:action => 'revision',
:conditions => {:method => [:get, :post]}
repositories.connect 'projects/:id/repository/committers', :action => 'committers',
repositories.connect 'projects/:id/repository/committers',
:action => 'committers',
:conditions => {:method => [:get, :post]}
repositories.connect 'projects/:id/repository/edit', :action => 'edit',
repositories.connect 'projects/:id/repository/edit',
:action => 'edit',
:conditions => {:method => :post}
repositories.connect 'projects/:id/repository/destroy', :action => 'destroy',
repositories.connect 'projects/:id/repository/destroy',
:action => 'destroy',
:conditions => {:method => :post}
end