using Workshop8.Data; using Workshop8.Infrastructure; using Workshop8.Models; var builder = WebApplication.CreateBuilder(args); builder.Services.AddRazorPages(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); var app = builder.Build(); await app.Services.GetRequiredService().EnsureDatabasesAsync(); app.UseStaticFiles(); app.MapRazorPages(); await app.RunAsync();