diff options
author | Simon Knox <psimyn@gmail.com> | 2019-06-05 17:24:21 +1000 |
---|---|---|
committer | syasonik <syasonik@gitlab.com> | 2019-06-06 11:43:50 +0100 |
commit | b46b38ff9fb09692aa02efd377e44756e1caabf2 (patch) | |
tree | ece8505eb167aef876604e7c256c9f48d21dbb9a /config | |
parent | 8980b714902361edc2b0441301978d8a277c9b6e (diff) | |
download | gitlab-ce-b46b38ff9fb09692aa02efd377e44756e1caabf2.tar.gz |
Named route for prometheus proxy_path
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index d44ff62bc2a..a1e769f6ca3 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -330,7 +330,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do get :metrics_dashboard get '/terminal.ws/authorize', to: 'environments#terminal_websocket_authorize', constraints: { format: nil } - get '/prometheus/api/v1/*proxy_path', to: 'environments/prometheus_api#proxy' + get '/prometheus/api/v1/*proxy_path', to: 'environments/prometheus_api#proxy', as: :prometheus_api end collection do |