diff --git a/ServiceHost/Program.cs b/ServiceHost/Program.cs index 309cc42a..1e94643e 100644 --- a/ServiceHost/Program.cs +++ b/ServiceHost/Program.cs @@ -335,12 +335,7 @@ builder.Services.AddParbad().ConfigureGateways(gateways => var app = builder.Build(); -#region GetHttpContext -var httpContextAccessor = app.Services.GetRequiredService(); - - -#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