summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-07-23 14:29:54 +0100
committerBob Van Landuyt <bob@vanlanduyt.co>2018-07-27 15:54:27 +0200
commit1a611cf1e5b0a7953fbb2a064aec72ed92b9e735 (patch)
tree50c234c48a7eb01682dbaae5cacd7990e70ebe41
parent53c327173e47b2ec91279b4f6bdbd625f6c58595 (diff)
downloadgitlab-ce-1a611cf1e5b0a7953fbb2a064aec72ed92b9e735.tar.gz
Scope instance_statistics to dash
-rw-r--r--config/routes.rb3
-rw-r--r--config/routes/instance_statistics.rb2
2 files changed, 3 insertions, 2 deletions
diff --git a/config/routes.rb b/config/routes.rb
index 17b969f669d..63e40a31b76 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -70,6 +70,8 @@ Rails.application.routes.draw do
get 'ide' => 'ide#index'
get 'ide/*vueroute' => 'ide#index', format: false
+
+ draw :instance_statistics
end
# Koding route
@@ -110,7 +112,6 @@ Rails.application.routes.draw do
draw :group
draw :user
draw :project
- draw :instance_statistics
root to: "root#index"
diff --git a/config/routes/instance_statistics.rb b/config/routes/instance_statistics.rb
index 338511b4dc1..1102ef6b017 100644
--- a/config/routes/instance_statistics.rb
+++ b/config/routes/instance_statistics.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
namespace :instance_statistics do
- root to: redirect("instance_statistics/conversational_development_index")
+ root to: redirect('-/instance_statistics/conversational_development_index')
resources :cohorts, only: :index
resources :conversational_development_index, only: :index