Improve container repository tags controller route
This commit is contained in:
parent
22d68f2bc3
commit
ee6f50027c
1 changed files with 4 additions and 5 deletions
|
@ -221,14 +221,13 @@ constraints(ProjectUrlConstrainer.new) do
|
|||
end
|
||||
end
|
||||
|
||||
resources :container_registry,
|
||||
controller: 'registry/repositories',
|
||||
only: [:index, :destroy],
|
||||
constraints: { id: Gitlab::Regex.container_registry_reference_regex }
|
||||
resources :container_registry, only: [:index, :destroy],
|
||||
controller: 'registry/repositories'
|
||||
|
||||
namespace :registry do
|
||||
resources :repository, only: [] do
|
||||
resources :tags, only: [:destroy]
|
||||
resources :tags, only: [:destroy],
|
||||
constraints: { id: Gitlab::Regex.container_registry_reference_regex }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue