Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Talento90 authored Sep 28, 2024
1 parent ddd65d1 commit f8d6f52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Caravel.AspNetCore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This package contains reusable middleware, http utilities that every application
```c#
// Handle exceptions according to RFC: https://tools.ietf.org/html/rfc7807
builder.Services.AddExceptionHandler<GlobalExceptionHandler>();
builder.Services.AddProblemDetails();

// Map the middleware
_application.UseExceptionHandler();
```

```json
Expand Down

0 comments on commit f8d6f52

Please sign in to comment.