We know that routes are registered in the app.UseEndpoints method, the selection of a route is done in the app.UseRouting method, why not combine U
app.UseEndpoints
app.UseRouting