Named route for prometheus proxy_path

This commit is contained in:
Simon Knox 2019-06-05 17:24:21 +10:00 committed by syasonik
parent 8980b71490
commit b46b38ff9f
1 changed files with 1 additions and 1 deletions

View File

@ -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