The conventional routing is the default routing approach in ASP.NET Core. As we have already seen, this approach uses the app.UseEndpoints extension method in the Startup class to declare routing templates:
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute("default", "{controller}/{action}/{id?}");
});
By default, ASP.NET Core applies the default route template to the routing engine, which maps each segment of our URL with the controller name, the action name, and the id name, respectively. Furthermore, it is possible to define multiple routes in our application by adding them to the routing builder in the Startup class:
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute("default", "{controller}/{action}/{id?}");
endpoints.MapControllerRoute("order", "order...