Commit 48c5a1a4 authored by Rémy Coutable's avatar Rémy Coutable Committed by Jose Ivan Vargas

Merge branch 'gitlab-infrastructure-archive-route-quick-fix' into 'master'

alternative route for download archive

See merge request !13439
parent f4ae59d1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment