diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-16 19:39:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-16 19:39:16 +0000 |
commit | e24358bc4374f68ad3000e88ae4c3f686b1f4b2b (patch) | |
tree | c204ed7797afd4dcb9e9fff4fd639b08b3a5c6eb /config | |
parent | dfd0b8bcdf2aa039b67a3a2f06dbbe8153972140 (diff) | |
download | redmine-e24358bc4374f68ad3000e88ae4c3f686b1f4b2b.tar.gz redmine-e24358bc4374f68ad3000e88ae4c3f686b1f4b2b.zip |
Use /raw/ for url instead of ?format=raw for getting raw repository files (#1901, #4119).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3074 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 21e33f501..dbb159c33 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -224,7 +224,11 @@ ActionController::Routing::Routes.draw do |map| repository_views.connect 'projects/:id/repository/revisions/:rev', :action => 'revision' repository_views.connect 'projects/:id/repository/revisions/:rev/diff', :action => 'diff' 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', :requirements => { :rev => /[a-z0-9\.\-_]+/ } repository_views.connect 'projects/:id/repository/revisions/:rev/:action/*path', :requirements => { :rev => /[a-z0-9\.\-_]+/ } + repository_views.connect 'projects/:id/repository/raw/*path', :action => 'entry', :format => 'raw' + # TODO: why the following route is required? + repository_views.connect 'projects/:id/repository/entry/*path', :action => 'entry' repository_views.connect 'projects/:id/repository/:action/*path' end |