What exactly does builder.Services.AddControllers() do? (stackoverflow.com)stack
13 points by g.pickardou in stackoverflow.com · 3y ago · stack
When I create a new ASP.NET Core 6/7 WebApi project and check the option "Use Controllers...." in VS 2022, this line appears in Program.cs : builder.Services.AddControllers(); The scaffolded WeatherForecastController is working properly. However in case I comment this line // bu…
filed under asp.net-coreasp.net-core-webapi