Chore: Remove bus from plugin proxy api (#44899)

* remove bus from plugin proxy api

* fixing the tests
This commit is contained in:
Serge Zaitsev
2022-02-04 17:35:00 +01:00
committed by GitHub
parent 7a23700e1a
commit 9d654bb6b8
4 changed files with 53 additions and 57 deletions

View File

@ -63,7 +63,7 @@ func AppPluginRoute(route *plugins.Route, appID string, hs *HTTPServer) web.Hand
return func(c *models.ReqContext) {
path := web.Params(c.Req)["*"]
proxy := pluginproxy.NewApiPluginProxy(c, path, route, appID, hs.Cfg, hs.SecretsService)
proxy := pluginproxy.NewApiPluginProxy(c, path, route, appID, hs.Cfg, hs.SQLStore, hs.SecretsService)
proxy.Transport = pluginProxyTransport
proxy.ServeHTTP(c.Resp, c.Req)
}