* Added WebHosts

This commit is contained in:
2025-01-30 20:31:11 +01:00
parent 1512357460
commit 5374f0b4ac

View File

@@ -17,6 +17,8 @@ builder.Services.AddDbContext<FaKrosnoDbContext>(options =>
builder.Services.AddDbContext<SytelineSaAppDbContext>(options => builder.Services.AddDbContext<SytelineSaAppDbContext>(options =>
options.UseSqlServer(builder.Configuration.GetConnectionString("SytelineSaAppConnection"))); options.UseSqlServer(builder.Configuration.GetConnectionString("SytelineSaAppConnection")));
builder.WebHost.UseUrls("http://*:5555");
builder.Services.AddControllers(); builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer(); builder.Services.AddEndpointsApiExplorer();
builder.Services.AddEndpointsApiExplorer(); builder.Services.AddEndpointsApiExplorer();
@@ -29,8 +31,6 @@ builder.Services.AddOpenApiDocument(config =>
// Configure AutoMapper // Configure AutoMapper
builder.Services.AddAutoMapper(typeof(FaKrosnoMappingProfile), typeof(SytelineSaAppMappingProfile)); builder.Services.AddAutoMapper(typeof(FaKrosnoMappingProfile), typeof(SytelineSaAppMappingProfile));
// Configure JWT Authentication // Configure JWT Authentication
builder.Services.AddAuthentication(options => builder.Services.AddAuthentication(options =>
{ {