From f8f2d0f9e18a76324d85ae319a3bb8585ed107d5 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Wed, 18 Jul 2018 01:37:58 +0100 Subject: Create instance_statistics namespace and move convdev index and cohorts to it --- config/routes/admin.rb | 4 ---- config/routes/instance_statistics.rb | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 config/routes/instance_statistics.rb (limited to 'config/routes') 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 -- cgit v1.2.1