* Added WebHosts
This commit is contained in:
@@ -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 =>
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user