-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MapMiddleware extensions are missing in new Endpoint. #14514
Comments
Thanks @pavinan. We'll investigating adding these APIs in the next major release. |
We have come across a similar problem. Previously you could use The way we want to solve this is by using app.UseRouting();
app.UseWhen(c => c.Request.Path.StartsWithSegments("/foo"),
innerApp => innerApp.UseMiddleware<FooMiddleware>()));
app.UseEndpoints(endpoints => endpoints.MapControllers())' Is this the right way to go? As an addition to |
@shadow-cs I was able to work around this today as follows:
Edit: This probably doesn't stack to let you augment existing routes like controllers though. |
We've moved this issue to the Backlog milestone. This means that it is not going to happen for the coming release. We will reassess the backlog following the current release and consider this item at that time. However, keep in mind that there are many other high priority features with which it will be competing for resources. |
MapMiddleware extensions are missing in new Endpoint.
In previous routebuilder it has MapMiddlewareRoute, MapMiddlewareGet, MapMiddlewarePost, MapMiddlewarePut, MapMiddlewareDelete.
I have considered the following alternative.
The text was updated successfully, but these errors were encountered: