diff options
author | Giorgenes Gelatti <ggelatti@gitlab.com> | 2019-07-18 15:24:40 +1000 |
---|---|---|
committer | Nathan Friend <nathan@gitlab.com> | 2019-07-30 13:49:47 -0300 |
commit | 0426d15c080255a97297a2d45fbc4e8c5d119124 (patch) | |
tree | fcdad12725b7e47a7cc32eb305a770111f7dbf23 /config | |
parent | 15bda06cab075f2365830a2808836516f6c25590 (diff) | |
download | gitlab-ce-0426d15c080255a97297a2d45fbc4e8c5d119124.tar.gz |
Support bulk registry tag delete
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/project.rb | 6 |
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 |