var builder = WebApplication.CreateBuilder(args); builder.AddServiceDefaults(); // Add services to the container. builder.Services.AddControllers(); var app = builder.Build(); app.MapDefaultEndpoints(); // Configure the HTTP request pipeline. app.UseHttpsRedirection(); app.UseAuthorization(); app.MapControllers(); app.Run();