Merge branch 'features/attachment_server' of /home/git/repositories/gitlab/gitlabhq

This commit is contained in:
Dmitriy Zaporozhets 2013-02-16 12:45:20 +00:00
commit fa3cc1dd24
5 changed files with 28 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
#