alternative route for download archive

This commit is contained in:
haseeb 2017-08-10 08:49:11 +00:00 committed by Rémy Coutable
parent 8790dc0bf8
commit 892ddd386a

View file

@ -3,6 +3,9 @@
resource :repository, only: [:create] do
member do
get ':ref/archive', constraints: { format: Gitlab::PathRegex.archive_formats_regex, ref: /.+/ }, action: 'archive', as: 'archive'
# deprecated since GitLab 9.5
get 'archive', constraints: { format: Gitlab::PathRegex.archive_formats_regex }, as: 'archive_alternative'
end
end