Improve container repository tags controller route

This commit is contained in:
Grzegorz Bizon 2017-04-05 14:13:46 +02:00
parent 22d68f2bc3
commit ee6f50027c

View file

@ -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