|
|
|
@ -147,6 +147,11 @@ app.UseAuthorization();
|
|
|
|
|
app.UseCors("myCors");
|
|
|
|
|
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();
|
|
|
|
|