diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-05 14:13:46 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-05 14:13:46 +0200 |
commit | ee6f50027c3b8366d97a0170f99c24dfc23cd101 (patch) | |
tree | 6a11dc5dd82eeebe99bc7b9e3e67670ad306f8f6 /config/routes | |
parent | 22d68f2bc38b0c55a33b41410ed3587b1d7d5b74 (diff) | |
download | gitlab-ce-ee6f50027c3b8366d97a0170f99c24dfc23cd101.tar.gz |
Improve container repository tags controller route
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/project.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index f85521fe6d3..909a12a0204 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -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 |