change
This commit is contained in:
@@ -335,12 +335,7 @@ builder.Services.AddParbad().ConfigureGateways(gateways =>
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
#region GetHttpContext
|
||||
|
||||
var httpContextAccessor = app.Services.GetRequiredService<IHttpContextAccessor>();
|
||||
|
||||
|
||||
#endregion
|
||||
app.UseCors("AllowSpecificOrigins");
|
||||
|
||||
#region InternalProgarmManagerApi
|
||||
@@ -358,7 +353,7 @@ app.Use(async (context, next) =>
|
||||
else if (host.Contains("dadmehrg.ir"))
|
||||
baseUrl = builder.Configuration["InternalApi:Dadmehrg"];
|
||||
else if (host.Contains("gozareshgir.ir"))
|
||||
baseUrl = builder.Configuration["InternalApi:Gozarreshgir"];
|
||||
baseUrl = builder.Configuration["InternalApi:Gozareshgir"];
|
||||
else
|
||||
baseUrl = builder.Configuration["InternalApi:Local"]; // fallback
|
||||
|
||||
|
||||
Reference in New Issue
Block a user