diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-07-18 01:37:58 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-27 15:54:26 +0200 |
commit | 602a1c34e33d75940c7acbf4a31a65e187dbbfde (patch) | |
tree | 580e136cf3a00cd15ade56447928ece7ad127f2c /config/routes | |
parent | ed81ee9ba2b5a0b68996ccb238bfa4c69a6df062 (diff) | |
download | gitlab-ce-602a1c34e33d75940c7acbf4a31a65e187dbbfde.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.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 |