From 9c9578f3958b555ce989f94d55b7bd97295bf9ef Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Tue, 12 Feb 2019 11:43:18 +0100 Subject: [PATCH] don't need to be ready to respond to functions requests --- api/routes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/routes.go b/api/routes.go index def8867005..7e5173ccdd 100644 --- a/api/routes.go +++ b/api/routes.go @@ -68,8 +68,8 @@ func (s *Server) RegisterRoutes() { r.Combo("/tags/autoComplete/tags", withOrg, ready, bind(models.GraphiteAutoCompleteTags{})).Get(s.graphiteAutoCompleteTags).Post(s.graphiteAutoCompleteTags) r.Combo("/tags/autoComplete/values", withOrg, ready, bind(models.GraphiteAutoCompleteTagValues{})).Get(s.graphiteAutoCompleteTagValues).Post(s.graphiteAutoCompleteTagValues) r.Post("/tags/delSeries", withOrg, ready, bind(models.GraphiteTagDelSeries{}), s.graphiteTagDelSeries) - r.Combo("/functions", withOrg, ready).Get(s.graphiteFunctions).Post(s.graphiteFunctions) - r.Combo("/functions/:func(.+)", withOrg, ready).Get(s.graphiteFunctions).Post(s.graphiteFunctions) + r.Combo("/functions", withOrg).Get(s.graphiteFunctions).Post(s.graphiteFunctions) + r.Combo("/functions/:func(.+)", withOrg).Get(s.graphiteFunctions).Post(s.graphiteFunctions) // Prometheus endpoints r.Combo("/prometheus/api/v1/query_range", cBody, withOrg, ready, form(models.PrometheusRangeQuery{})).Get(s.prometheusQueryRange).Post(s.prometheusQueryRange)