summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-18 20:53:10 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-18 20:53:10 +0000
commitf89483a206b4aea3a307000c5ed7c0e9da5bea93 (patch)
tree060d0e9b017fb58474b1c4bd5c8c5554ef5578a3 /config
parente10198f0d5f3f0b7ba2f95a1fa1ae16abe89fb0d (diff)
downloadredmine-f89483a206b4aea3a307000c5ed7c0e9da5bea93.tar.gz
redmine-f89483a206b4aea3a307000c5ed7c0e9da5bea93.zip
REST API for reading attachments (#7671).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6295 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 3188c9fc4..17c36785f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -220,6 +220,7 @@ ActionController::Routing::Routes.draw do |map|
end
map.connect 'attachments/:id', :controller => 'attachments', :action => 'show', :id => /\d+/
+ map.connect 'attachments/:id.:format', :controller => 'attachments', :action => 'show', :id => /\d+/
map.connect 'attachments/:id/:filename', :controller => 'attachments', :action => 'show', :id => /\d+/, :filename => /.*/
map.connect 'attachments/download/:id/:filename', :controller => 'attachments', :action => 'download', :id => /\d+/, :filename => /.*/