Skip to content

Commit

Permalink
Change URL route due to an undocumented Grafana API change (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
zxia-wish authored Jul 12, 2021
1 parent cf26cf4 commit c4ddc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func registerRoutes(srv *Server) http.Handler {
// grafana datasource endpoints
r.GET("/grafana", latency("/grafana", cors(srv.grafanaOK)))
r.GET("/grafana/", latency("/grafana/", cors(srv.grafanaOK)))
r.OPTIONS("/grafana/:route", latency("/grafana", cors(srv.grafanaOK)))
r.OPTIONS("/grafana/*route", latency("/grafana", cors(srv.grafanaOK)))
r.POST("/grafana/annotations", latency("/grafana/annotations", cors(srv.grafanaAnnotations)))
r.POST("/grafana/search", latency("/grafana/search", cors(srv.grafanaSearch)))

Expand Down

0 comments on commit c4ddc29

Please sign in to comment.