summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2019-06-05 17:24:21 +1000
committersyasonik <syasonik@gitlab.com>2019-06-06 11:43:50 +0100
commitb46b38ff9fb09692aa02efd377e44756e1caabf2 (patch)
treeece8505eb167aef876604e7c256c9f48d21dbb9a /config
parent8980b714902361edc2b0441301978d8a277c9b6e (diff)
downloadgitlab-ce-b46b38ff9fb09692aa02efd377e44756e1caabf2.tar.gz
Named route for prometheus proxy_path
Diffstat (limited to 'config')
-rw-r--r--config/routes/project.rb2
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