Isn’t there still lots of boilerplate, it’s just generated for you?
You used to have a class, and there would typically be a separate Startup.cs file. Today, this is a complete .cs file for creating an API:
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello World!");
app.Run();