Plugins: Add context to StaticRouteResolver and ErrorResolver interfaces (#73121)
* add ctx * fix tests
This commit is contained in:
+2
-2
@@ -431,8 +431,8 @@ func (hs *HTTPServer) CheckHealth(c *contextmodel.ReqContext) response.Response
|
||||
return response.JSON(http.StatusOK, payload)
|
||||
}
|
||||
|
||||
func (hs *HTTPServer) GetPluginErrorsList(_ *contextmodel.ReqContext) response.Response {
|
||||
return response.JSON(http.StatusOK, hs.pluginErrorResolver.PluginErrors())
|
||||
func (hs *HTTPServer) GetPluginErrorsList(c *contextmodel.ReqContext) response.Response {
|
||||
return response.JSON(http.StatusOK, hs.pluginErrorResolver.PluginErrors(c.Req.Context()))
|
||||
}
|
||||
|
||||
func (hs *HTTPServer) InstallPlugin(c *contextmodel.ReqContext) response.Response {
|
||||
|
||||
Reference in New Issue
Block a user