summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorhaseeb <haseebeqx@gmail.com>2017-08-10 08:49:11 +0000
committerRémy Coutable <remy@rymai.me>2017-08-10 08:49:11 +0000
commit892ddd386a92eeeb53973fb81802af56b800c9a4 (patch)
tree3bbfa27d1a1ae889332c03651fb7a80083b2ac5c /config
parent8790dc0bf8a743c10870946f86f997f219ac3a82 (diff)
downloadgitlab-ce-892ddd386a92eeeb53973fb81802af56b800c9a4.tar.gz
alternative route for download archive
Diffstat (limited to 'config')
-rw-r--r--config/routes/repository.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/routes/repository.rb b/config/routes/repository.rb
index 2ba16035ece..57b7c55423d 100644
--- a/config/routes/repository.rb
+++ b/config/routes/repository.rb
@@ -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