mirror da
https://github.com/redmine/redmine.git
synced 2024-09-02 05:54:49 +02:00
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:
parent
a9f25961af
commit
888f9fd5e1
@ -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
|
||||
|
||||
|
Caricamento…
Fai riferimento in un nuovo problema
Block a user