diff --git a/Webshop.Api/Program.cs b/Webshop.Api/Program.cs index 0ef448b..01f3088 100644 --- a/Webshop.Api/Program.cs +++ b/Webshop.Api/Program.cs @@ -25,9 +25,13 @@ using Webshop.Infrastructure.Data; using Webshop.Infrastructure.Repositories; using Webshop.Infrastructure.Services; -var builder = WebApplication.CreateBuilder(args); - -builder.WebHost.UseWebRoot("wwwroot"); +var options = new WebApplicationOptions +{ + Args = args, + // Diese Zeile setzt den WebRootPath explizit auf den wwwroot-Ordner. + WebRootPath = "wwwroot" +}; +var builder = WebApplication.CreateBuilder(options); // --- 1. Dependency Injection Konfiguration ---