|
|
|
|
@ -39,7 +39,7 @@ builder.Services.AddScoped<IExpedienceRepository, ExpedienceRepository>();
|
|
|
|
|
|
|
|
|
|
builder.Services.AddSingleton<IDistributedLock, DistributedLock>();
|
|
|
|
|
builder.Services.AddSingleton<IDecryptor, Decryptor>();
|
|
|
|
|
|
|
|
|
|
builder.WebHost.UseUrls("http://*:80");
|
|
|
|
|
var app = builder.Build();
|
|
|
|
|
|
|
|
|
|
var scope = app.Services.CreateScope();
|
|
|
|
|
@ -54,6 +54,7 @@ if (app.Environment.IsDevelopment())
|
|
|
|
|
app.UseSwaggerUI();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app.UseAuthorization();
|
|
|
|
|
|
|
|
|
|
app.MapControllers();
|
|
|
|
|
|