summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-07-18 01:37:58 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-26 19:00:09 +0200
commitf8f2d0f9e18a76324d85ae319a3bb8585ed107d5 (patch)
treed7d70e058aa007923401791747a9efc45a52083c /config/routes
parent8e675082374eefdcb7ae6a004fcf2b16d3c68201 (diff)
downloadgitlab-ce-f8f2d0f9e18a76324d85ae319a3bb8585ed107d5.tar.gz
Create instance_statistics namespace and move convdev index and cohorts to it
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/admin.rb4
-rw-r--r--config/routes/instance_statistics.rb6
2 files changed, 6 insertions, 4 deletions
diff --git a/config/routes/admin.rb b/config/routes/admin.rb
index ff27ceb50dc..0ed57d78066 100644
--- a/config/routes/admin.rb
+++ b/config/routes/admin.rb
@@ -76,8 +76,6 @@ namespace :admin do
resource :system_info, controller: 'system_info', only: [:show]
resources :requests_profiles, only: [:index, :show], param: :name, constraints: { name: /.+\.html/ }
- get 'conversational_development_index' => 'conversational_development_index#show'
-
resources :projects, only: [:index]
scope(path: 'projects/*namespace_id',
@@ -123,8 +121,6 @@ namespace :admin do
end
end
- resources :cohorts, only: :index
-
resources :jobs, only: :index do
collection do
post :cancel_all
diff --git a/config/routes/instance_statistics.rb b/config/routes/instance_statistics.rb
new file mode 100644
index 00000000000..365797cb688
--- /dev/null
+++ b/config/routes/instance_statistics.rb
@@ -0,0 +1,6 @@
+namespace :instance_statistics do
+ root to: redirect("instance_statistics/conversational_development_index")
+
+ resources :cohorts, only: :index
+ resources :conversational_development_index, only: :index
+end