From 0426d15c080255a97297a2d45fbc4e8c5d119124 Mon Sep 17 00:00:00 2001 From: Giorgenes Gelatti Date: Thu, 18 Jul 2019 15:24:40 +1000 Subject: Support bulk registry tag delete --- config/routes/project.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config') 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 -- cgit v1.2.3