REST API for reading attachments (#7671).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6295 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
e10198f0d5
commit
f89483a206
8 files changed
+144
-11
No files matched your search
@@ -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 => /.*/
|
||||
|
||||
|
||||
Reference in new issue
Block a user