summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-08-15 23:57:38 +0000
committerThong Kuah <tkuah@gitlab.com>2019-08-15 23:57:38 +0000
commitf4ce990b0e2811cd2c3391fc5f11de990bc54f16 (patch)
tree34bfb064d8cdec92337d59f9904a64850b8a47d7 /config/routes
parentbd5c259a0bb94cb601a3c0f017c383731ac868e6 (diff)
parentf3de7855f90ed6785f546ed4831e3cc9d34c63ad (diff)
downloadgitlab-ce-f4ce990b0e2811cd2c3391fc5f11de990bc54f16.tar.gz
Merge branch '24705-multi-selection-for-delete-on-registry-page' into 'master'
Resolve "Multi selection for delete on registry page" Closes #24705 See merge request gitlab-org/gitlab-ce!30837
Diffstat (limited to 'config/routes')
-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 a207ee44d47..9a453d101a1 100644
--- a/config/routes/project.rb
+++ b/config/routes/project.rb
@@ -477,7 +477,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