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:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-10-11 19:27:53 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-12 12:36:55 +0300
commit2c25a7ae3453e72ad6cab504255e327c17df0a95 (patch)
tree73b9299225b80b728f5aaa58d8964bd00643dfdd /config/routes
parentd8e504a8f790f032f5d7757c6d61093faa7a2542 (diff)
Nest the group_children_path inside the canonical group path
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/group.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb
index 514f756a45f..2f5de5bed5a 100644
--- a/config/routes/group.rb
+++ b/config/routes/group.rb
@@ -30,6 +30,8 @@ scope(path: 'groups/*group_id',
end
resources :variables, only: [:index, :show, :update, :create, :destroy]
+
+ resources :children, only: [:index]
end
end
@@ -53,9 +55,5 @@ constraints(GroupUrlConstrainer.new) do
patch '/', action: :update
put '/', action: :update
delete '/', action: :destroy
-
- scope(path: '-') do
- get :children
- end
end
end