|
|
@ -147,6 +147,11 @@ app.UseAuthorization();
|
|
|
|
app.UseCors("myCors");
|
|
|
|
app.UseCors("myCors");
|
|
|
|
app.MapControllers();
|
|
|
|
app.MapControllers();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var list = AppSettingsHelper.GetContent("Kestrel", "Endpoints", "http", "Url");
|
|
|
|
|
|
|
|
foreach (var s in list.Split(";"))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
app.Urls.Add(s);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AppInfo.Container = app.Services.GetAutofacRoot();
|
|
|
|
AppInfo.Container = app.Services.GetAutofacRoot();
|
|
|
|