Audit.WebApi Minimal Api support? #676
-
Hello, |
Beta Was this translation helpful? Give feedback.
Answered by
thepirat000
Jul 5, 2024
Replies: 1 comment
-
The middleware should work with minimal APIs, for example: using Audit.WebApi;
var builder = WebApplication.CreateBuilder(args);
// ...
var app = builder.Build();
app.UseAuditMiddleware(config => config.IncludeHeaders()); // <-- THIS
app.MapGet("/weatherforecast", (HttpContext httpContext) =>
{
// ...
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
santoror
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The middleware should work with minimal APIs, for example: