alternative route for download archive
This commit is contained in:
parent
8790dc0bf8
commit
892ddd386a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue