diff options
Diffstat (limited to 'config/routes')
-rw-r--r-- | config/routes/admin.rb | 4 | ||||
-rw-r--r-- | config/routes/instance_statistics.rb | 8 |
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 |