ASP.NET MVC routes are configured and added during application startup. There are two ways to add routes: within the UseMvc method on the Startup class, or by using route attributes.