diff options
author | Luke Bennett <lbennett@gitlab.com> | 2019-07-10 21:26:34 +0100 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2019-07-11 22:29:16 +0100 |
commit | 04af424babefc4509f99fba645611992cfd6600d (patch) | |
tree | e58372869d91b96685ef74fc6a8e9bf96526cd8f /config/routes.rb | |
parent | 38ff44980ec1c08570aee327ebfef48f99cd4d1e (diff) | |
download | gitlab-ce-04af424babefc4509f99fba645611992cfd6600d.tar.gz |
Port EE analytics routegroup-analytics-frame
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 50bb092ec2e..d208df62b4a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -110,6 +110,12 @@ Rails.application.routes.draw do draw :jira_connect end + Gitlab.ee do + constraints(::Constraints::FeatureConstrainer.new(:analytics)) do + draw :analytics + end + end + if ENV['GITLAB_CHAOS_SECRET'] || Rails.env.development? resource :chaos, only: [] do get :leakmem @@ -119,6 +125,13 @@ Rails.application.routes.draw do get :kill end end + + if ENV['GITLAB_ENABLE_CHAOS_ENDPOINTS'] + get '/chaos/leakmem' => 'chaos#leakmem' + get '/chaos/cpuspin' => 'chaos#cpuspin' + get '/chaos/sleep' => 'chaos#sleep' + get '/chaos/kill' => 'chaos#kill' + end end concern :clusterable do |