handle attahcment with send_file

This commit is contained in:
Dmitriy Zaporozhets 2013-02-11 21:31:19 +02:00
parent ab0cfc0036
commit a699ebdbcc
5 changed files with 19 additions and 2 deletions

View file

@ -45,6 +45,11 @@ Gitlab::Application.routes.draw do
root to: "projects#index"
end
#
# Attachments serving
#
get 'files/:type/:id/:filename' => 'files#download', constraints: { id: /\d+/, type: /[a-z]+/, filename: /[a-zA-Z.0-9_\-\+]+/ }
#
# Admin Area
#