⚙️ Minimal APIs
var app = WebApplication.CreateBuilder(args).Build();app.MapGet("/hello/{name}", (string name) => $"Hello {name}");app.Run();
Tips: Use endpoint filters, typed results, and route groups for larger apps.
var app = WebApplication.CreateBuilder(args).Build();app.MapGet("/hello/{name}", (string name) => $"Hello {name}");app.Run();
Tips: Use endpoint filters, typed results, and route groups for larger apps.