This commit is contained in:
2025-10-27 21:39:50 -04:00
parent 31f723bea4
commit 2fecd5b315
22 changed files with 1198 additions and 14 deletions

View File

@@ -18,6 +18,14 @@ builder.AddPrefab();
var app = builder.Build();
app.UsePrefab();
// if (app.Environment.IsDevelopment())
// {
// using var scope = app.Services.CreateScope();
// var seeder = scope.ServiceProvider.GetRequiredService<Prefab.Catalog.Data.Seeder>();
// var db = scope.ServiceProvider.GetRequiredService<Prefab.Catalog.Data.IModuleDb>();
// await seeder.Execute(scope.ServiceProvider, CancellationToken.None);
// }
app.MapDefaultEndpoints();
// Configure the HTTP request pipeline.