Any example to use Audit.NET with IEndpointRouteBuilder (.NET 8)? #643
Unanswered
thangchung
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yes, you could use the Audit Middleware For example, in your program.cs: var app = builder.Build();
// Add and configure the audit middleware
app.UseAuditMiddleware(config => config
.IncludeHeaders()
.IncludeResponseHeaders()
.FilterByRequest(r => r.Path.Value.StartsWith("/v1/api/fulfillment-orders"))); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say we have an endpoint (.NET 8) like
Now, we want to do an audit action on the endpoint above. I searched around on the internet and this repo, but couldn't find any example to address it. Do we have any place to mention it? Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions