summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2018-07-23 14:29:54 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2018-07-23 14:29:54 +0100
commitd3cb68958fa6011eae67c92eba1778b889e6ac85 (patch)
tree5153cc44e469872a27f7cfd4ae3da354cbd16498
parent61139830e399a9217bc860aa4695e9988d5ada0a (diff)
downloadgitlab-ce-d3cb68958fa6011eae67c92eba1778b889e6ac85.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 365797cb688..725549beb7e 100644
--- a/config/routes/instance_statistics.rb
+++ b/config/routes/instance_statistics.rb
@@ -1,5 +1,5 @@
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