feat(server): allow to execute HTTP get through v2 proxy

pull/5998/head
Pavel Zavora 2022-08-18 12:38:38 +02:00
parent 42157b8d1f
commit 2af296f93d
1 changed files with 1 additions and 0 deletions

View File

@ -204,6 +204,7 @@ func NewMux(opts MuxOpts, service Service) http.Handler {
// Source Proxy to Influx's flux endpoint; compression because the responses from
// flux could be large.
router.Handler("POST", "/chronograf/v1/sources/:id/proxy/flux", EnsureReader(service.ProxyFlux))
router.Handler("GET", "/chronograf/v1/sources/:id/proxy/flux", EnsureReader(service.ProxyFlux))
// Write proxies line protocol write requests to InfluxDB
router.POST("/chronograf/v1/sources/:id/write", EnsureViewer(service.Write))