As I\'m trying to understand them, It seem like they are both used to route/map the request to a certain endpoint
UseRouting calculates what route should be used for a request URL path, but doesn't route at this point in the pipeline. UseRouting adds metadata that can be used by subsequent middleware.
UseEndpoints executes the Controller and corresponding handler.
Take a look at this helpful write-up: https://andrewlock.net/converting-a-terminal-middleware-to-endpoint-routing-in-aspnetcore-3/