mirror of
https://github.com/redmine/redmine.git
synced 2024-08-26 17:58:38 +02:00
route: add revision requirement to repository raw action lost in 1.4-stable
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@9545 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
dcba6f0400
commit
45683d9c2a
@ -259,7 +259,8 @@ ActionController::Routing::Routes.draw do |map|
|
||||
repository_views.connect 'projects/:id/repository/:repository_id/revisions/:rev/diff.:format',
|
||||
:action => 'diff'
|
||||
repository_views.connect 'projects/:id/repository/:repository_id/revisions/:rev/raw/*path',
|
||||
:action => 'entry', :format => 'raw'
|
||||
:action => 'entry', :format => 'raw',
|
||||
:requirements => { :rev => /[a-z0-9\.\-_]+/ }
|
||||
repository_views.connect 'projects/:id/repository/:repository_id/revisions/:rev/:action/*path',
|
||||
:requirements => {
|
||||
:action => /(browse|show|entry|changes|annotate|diff)/,
|
||||
@ -290,7 +291,8 @@ ActionController::Routing::Routes.draw do |map|
|
||||
repository_views.connect 'projects/:id/repository/revisions/:rev/diff.:format',
|
||||
:action => 'diff'
|
||||
repository_views.connect 'projects/:id/repository/revisions/:rev/raw/*path',
|
||||
:action => 'entry', :format => 'raw'
|
||||
:action => 'entry', :format => 'raw',
|
||||
:requirements => { :rev => /[a-z0-9\.\-_]+/ }
|
||||
repository_views.connect 'projects/:id/repository/revisions/:rev/:action/*path',
|
||||
:requirements => {
|
||||
:action => /(browse|show|entry|changes|annotate|diff)/,
|
||||
|
Loading…
Reference in New Issue
Block a user