API: enable proxying datasource calls using the datasource UID (#47634)

* Introduce additional routes
This commit is contained in:
Sofia Papagiannaki
2022-04-14 13:28:13 +03:00
committed by GitHub
parent 7916f3b638
commit c8189e4808
4 changed files with 53 additions and 11 deletions

View File

@ -5,3 +5,7 @@ import "github.com/grafana/grafana/pkg/models"
func (hs *HTTPServer) ProxyDataSourceRequest(c *models.ReqContext) {
hs.DataProxy.ProxyDataSourceRequest(c)
}
func (hs *HTTPServer) ProxyDataSourceRequestWithUID(c *models.ReqContext) {
hs.DataProxy.ProxyDatasourceRequestWithUID(c)
}