Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGiorgenes Gelatti <ggelatti@gitlab.com>2019-07-18 08:24:40 +0300
committerNathan Friend <nathan@gitlab.com>2019-07-30 19:49:47 +0300
commit0426d15c080255a97297a2d45fbc4e8c5d119124 (patch)
treefcdad12725b7e47a7cc32eb305a770111f7dbf23 /config
parent15bda06cab075f2365830a2808836516f6c25590 (diff)
Support bulk registry tag delete
Diffstat (limited to 'config')
-rw-r--r--config/routes/project.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb
index 1f632765317..4bb0bce2965 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -474,7 +474,11 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
# in JSON format, or a request for tag named `latest.json`.
scope format: false do
resources :tags, only: [:index, :destroy],
- constraints: { id: Gitlab::Regex.container_registry_tag_regex }
+ constraints: { id: Gitlab::Regex.container_registry_tag_regex } do
+ collection do
+ delete :bulk_destroy
+ end
+ end
end
end
end