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
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes/admin.rb')
-rw-r--r--config/routes/admin.rb26
1 files changed, 16 insertions, 10 deletions
diff --git a/config/routes/admin.rb b/config/routes/admin.rb
index 85c7951e1ea..0ebf13ac8d0 100644
--- a/config/routes/admin.rb
+++ b/config/routes/admin.rb
@@ -50,9 +50,11 @@ namespace :admin do
resources :groups, only: [:index, :new, :create]
- scope(path: 'groups/*id',
- controller: :groups,
- constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom)/ }) do
+ scope(
+ path: 'groups/*id',
+ controller: :groups,
+ constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom)/ }
+ ) do
scope(as: :group) do
put :members_update
get :edit, action: :edit
@@ -113,13 +115,17 @@ namespace :admin do
get 'dev_ops_report', to: redirect('admin/dev_ops_reports')
resources :cohorts, only: :index
- scope(path: 'projects/*namespace_id',
- as: :namespace,
- constraints: { namespace_id: Gitlab::PathRegex.full_namespace_route_regex }) do
- resources(:projects,
- path: '/',
- constraints: { id: Gitlab::PathRegex.project_route_regex },
- only: [:show, :destroy]) do
+ scope(
+ path: 'projects/*namespace_id',
+ as: :namespace,
+ constraints: { namespace_id: Gitlab::PathRegex.full_namespace_route_regex }
+ ) do
+ resources(
+ :projects,
+ path: '/',
+ constraints: { id: Gitlab::PathRegex.project_route_regex },
+ only: [:show, :destroy]
+ ) do
member do
put :transfer
post :repository_check