Where is the configuration for routes primarily done in an ASP.NET Core MVC application?

  • In the Startup.cs file
  • In the Views folder
  • In the appsettings.json file
  • In the Program.cs file
In an ASP.NET Core MVC application, the configuration for routes is primarily done in the Startup.cs file. In the Configure method, developers define route patterns and specify which controller and action should handle incoming requests, enabling the routing system to map URLs to controller actions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *