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:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-07-18 03:37:58 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-27 16:54:26 +0300
commit602a1c34e33d75940c7acbf4a31a65e187dbbfde (patch)
tree580e136cf3a00cd15ade56447928ece7ad127f2c /config/routes
parented81ee9ba2b5a0b68996ccb238bfa4c69a6df062 (diff)
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.rb8
2 files changed, 8 insertions, 4 deletions
diff --git a/config/routes/admin.rb b/config/routes/admin.rb
index 109f00631fb..7ee960970f8 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..338511b4dc1
--- /dev/null
+++ b/config/routes/instance_statistics.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+namespace :instance_statistics do
+ root to: redirect("instance_statistics/conversational_development_index")
+
+ resources :cohorts, only: :index
+ resources :conversational_development_index, only: :index
+end