Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/routes/project.rb9
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