Skip to content

Commit

Permalink
Updates HTTP Middleware docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shield1739 authored and jeremydmiller committed Oct 18, 2023
1 parent 28e0a3a commit d7ba191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/guide/http/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ app.MapWolverineEndpoints(opts =>
{
// Fake policy to add authentication middleware to any endpoint classes under
// an application namespace
opts.Middleware.AddType(typeof(MyAuthenticationMiddleware),
opts.AddMiddleware(typeof(MyAuthenticationMiddleware),
c => c.HandlerCalls().Any(x => x.HandlerType.IsInNamespace("MyApp.Authenticated")));
});
```
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Wolverine.Http/Runtime/RequestIdMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public void bootstrap(WebApplication app)
{
// Fake policy to add authentication middleware to any endpoint classes under
// an application namespace
opts.Middleware.AddType(typeof(MyAuthenticationMiddleware),
opts.AddMiddleware(typeof(MyAuthenticationMiddleware),
c => c.HandlerCalls().Any(x => x.HandlerType.IsInNamespace("MyApp.Authenticated")));
});

Expand Down

0 comments on commit d7ba191

Please sign in to comment.