UseRouting: Matches request to an endpoint.
UseEndpoints: Execute the matched endpoint.
It decouples the route matching and resolution functionality from the endpoint executing functionality, which until now was all bundled in with the MVC middleware.
This makes the ASP.NET Core framework more flexible and allows other middlewares to…
Top comments (0)