Chore: Use response limit middleware from SDK (#83915)

This commit is contained in:
Andres Martinez Gotor
2024-03-13 10:14:16 +01:00
committed by GitHub
parent ecd6de826a
commit c061cc33cc
12 changed files with 28 additions and 201 deletions
@@ -51,6 +51,7 @@ func (r *subResourceREST) Connect(ctx context.Context, name string, opts runtime
return nil, err
}
ctx = backend.WithGrafanaConfig(ctx, pluginCtx.GrafanaConfig)
ctx = contextualMiddlewares(ctx)
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
body, err := io.ReadAll(req.Body)