diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-04 11:20:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-11-04 11:20:21 +0000 |
commit | d46e3a501e7bad4242d896de36f02c19b8781143 (patch) | |
tree | 85fb8a12da0ad944ede83fff3123954d960bf760 /config/routes.rb | |
parent | d4e47d5d649844aa2d29b79334946cf4765c8482 (diff) | |
download | redmine-d46e3a501e7bad4242d896de36f02c19b8781143.tar.gz redmine-d46e3a501e7bad4242d896de36f02c19b8781143.zip |
Pretty URL for the repository browser (Cyril Mougel)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@880 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 80fa58942..bb61b4c0f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -16,6 +16,13 @@ ActionController::Routing::Routes.draw do |map| map.connect 'issues/:issue_id/relations/:action/:id', :controller => 'issue_relations' map.connect 'projects/:project_id/boards/:action/:id', :controller => 'boards' map.connect 'boards/:board_id/topics/:action/:id', :controller => 'messages' + + map.with_options :controller => 'repositories' do |omap| + omap.repositories_show 'repositories/browse/:id/*path', :action => 'browse' + omap.repositories_changes 'repositories/changes/:id/*path', :action => 'changes' + omap.repositories_diff 'repositories/diff/:id/*path', :action => 'diff' + omap.repositories_entry 'repositories/entry/:id/*path', :action => 'entry' + end # Allow downloading Web Service WSDL as a file with an extension # instead of a file named 'wsdl' |