From cb14e93ad511665a2e5479409068a8476f139119 Mon Sep 17 00:00:00 2001 From: Daniel Wathen Date: Fri, 6 Jan 2023 13:38:25 -0700 Subject: [PATCH] Changed API url for fabtime endpoints --- .../Controllers/PlanningReportController.cs | 4 +--- .../Controllers/ProductionReportController.cs | 17 +++++++++-------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/ReportingServices.UI/Controllers/PlanningReportController.cs b/ReportingServices.UI/Controllers/PlanningReportController.cs index 29d6ba0..d7a60d9 100644 --- a/ReportingServices.UI/Controllers/PlanningReportController.cs +++ b/ReportingServices.UI/Controllers/PlanningReportController.cs @@ -8,13 +8,11 @@ namespace ReportingServices.UI.Controllers public class PlanningReportController : Controller { private readonly ILogger _logger; - private readonly IConfiguration _configuration; private readonly string _baseUrl; - public PlanningReportController(ILogger logger, IConfiguration configuration) + public PlanningReportController(ILogger logger) { _logger = logger; - _configuration = configuration; _baseUrl = "http://localhost:50201/api/" + "ScrapeDB/"; _logger.LogInformation("Base API Address: {baseUrl}", _baseUrl); diff --git a/ReportingServices.UI/Controllers/ProductionReportController.cs b/ReportingServices.UI/Controllers/ProductionReportController.cs index 21b8fb2..a51677b 100644 --- a/ReportingServices.UI/Controllers/ProductionReportController.cs +++ b/ReportingServices.UI/Controllers/ProductionReportController.cs @@ -8,18 +8,19 @@ namespace ReportingServices.UI.Controllers public class ProductionReportController : Controller { private readonly ILogger _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 logger, IConfiguration configuration) + public ProductionReportController(ILogger 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 {