diff --git a/Api/Program.cs b/Api/Program.cs index 39dcc34..f4febff 100644 --- a/Api/Program.cs +++ b/Api/Program.cs @@ -48,14 +48,11 @@ namespace Api }); builder.Services.AddControllers(); + // Add DbContext with SQL Server // Allow connection string to be set via environment variable (e.g., in Docker) - var envConnectionString = Environment.GetEnvironmentVariable("DB_CONNECTION_STRING"); - var connectionString = !string.IsNullOrWhiteSpace(envConnectionString) - ? envConnectionString - : builder.Configuration.GetConnectionString("DefaultConnection"); builder.Services.AddDbContext(options => - options.UseSqlServer(connectionString)); + options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection"))); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); diff --git a/Web/core b/Web/core deleted file mode 100644 index 43c011b..0000000 Binary files a/Web/core and /dev/null differ