diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-08 18:26:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-08 18:26:39 +0000 |
commit | d77c1d2829f985c418442940c623ec6ec5d5457b (patch) | |
tree | 306c57c239f36e81c78a2642a911ccf3bed280ef /config/routes.rb | |
parent | e833cab30e19b5c9d17db405660f081923482f11 (diff) | |
download | redmine-d77c1d2829f985c418442940c623ec6ec5d5457b.tar.gz redmine-d77c1d2829f985c418442940c623ec6ec5d5457b.zip |
Unified diff viewer for attached files with .patch or .diff extension (#1403).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1516 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 0edb71a06..3cb18d1bd 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -31,6 +31,8 @@ ActionController::Routing::Routes.draw do |map| omap.repositories_entry 'repositories/annotate/:id/*path', :action => 'annotate' end + map.connect 'attachments/:id', :controller => 'attachments', :action => 'show' + # Allow downloading Web Service WSDL as a file with an extension # instead of a file named 'wsdl' map.connect ':controller/service.wsdl', :action => 'wsdl' |