Changed API url for fabtime endpoints

This commit is contained in:
Daniel Wathen
2023-01-06 13:38:25 -07:00
parent 63f442ef07
commit cb14e93ad5
2 changed files with 10 additions and 11 deletions

View File

@ -8,13 +8,11 @@ namespace ReportingServices.UI.Controllers
public class PlanningReportController : Controller
{
private readonly ILogger<PlanningReportController> _logger;
private readonly IConfiguration _configuration;
private readonly string _baseUrl;
public PlanningReportController(ILogger<PlanningReportController> logger, IConfiguration configuration)
public PlanningReportController(ILogger<PlanningReportController> logger)
{
_logger = logger;
_configuration = configuration;
_baseUrl = "http://localhost:50201/api/" + "ScrapeDB/";
_logger.LogInformation("Base API Address: {baseUrl}", _baseUrl);

View File

@ -8,18 +8,19 @@ namespace ReportingServices.UI.Controllers
public class ProductionReportController : Controller
{
private readonly ILogger<ProductionReportController> _logger;
private readonly IConfiguration _configuration;
private readonly string _dailyRptFilePath = "wwwroot/Assets/DailyReportInfo.json";
private readonly string _toolStateOwnerFilePath = "wwwroot/Assets/ToolStates.json";
private readonly string _baseUrl;
private readonly string _baseFTUrl;
private readonly string _baseDBUrl;
public ProductionReportController(ILogger<ProductionReportController> logger, IConfiguration configuration)
public ProductionReportController(ILogger<ProductionReportController> logger)
{
_logger = logger;
_configuration = configuration;
_baseUrl = "http://localhost:50201/api/";
_baseFTUrl = "http://mestsa008:50201/api/";
_baseDBUrl = "http://localhost:50201/api/";
_logger.LogInformation("Base API Address: {baseUrl}", _baseUrl);
_logger.LogInformation("Base FabTime Address: {baseUrl}", _baseFTUrl);
_logger.LogInformation("Base Database Address: {baseUrl}", _baseDBUrl);
}
@ -30,8 +31,8 @@ namespace ReportingServices.UI.Controllers
public IActionResult DailyReport()
{
string baseFabTimeUrl = _baseUrl + "FabTime/";
string baseScrapeDbUrl = _baseUrl + "ScrapeDB/";
string baseFabTimeUrl = _baseFTUrl + "FabTime/";
string baseScrapeDbUrl = _baseDBUrl + "ScrapeDB/";
try
{