Changed API url for fabtime endpoints
This commit is contained in:
@ -8,13 +8,11 @@ namespace ReportingServices.UI.Controllers
|
|||||||
public class PlanningReportController : Controller
|
public class PlanningReportController : Controller
|
||||||
{
|
{
|
||||||
private readonly ILogger<PlanningReportController> _logger;
|
private readonly ILogger<PlanningReportController> _logger;
|
||||||
private readonly IConfiguration _configuration;
|
|
||||||
private readonly string _baseUrl;
|
private readonly string _baseUrl;
|
||||||
|
|
||||||
public PlanningReportController(ILogger<PlanningReportController> logger, IConfiguration configuration)
|
public PlanningReportController(ILogger<PlanningReportController> logger)
|
||||||
{
|
{
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
_configuration = configuration;
|
|
||||||
_baseUrl = "http://localhost:50201/api/" + "ScrapeDB/";
|
_baseUrl = "http://localhost:50201/api/" + "ScrapeDB/";
|
||||||
|
|
||||||
_logger.LogInformation("Base API Address: {baseUrl}", _baseUrl);
|
_logger.LogInformation("Base API Address: {baseUrl}", _baseUrl);
|
||||||
|
@ -8,18 +8,19 @@ namespace ReportingServices.UI.Controllers
|
|||||||
public class ProductionReportController : Controller
|
public class ProductionReportController : Controller
|
||||||
{
|
{
|
||||||
private readonly ILogger<ProductionReportController> _logger;
|
private readonly ILogger<ProductionReportController> _logger;
|
||||||
private readonly IConfiguration _configuration;
|
|
||||||
private readonly string _dailyRptFilePath = "wwwroot/Assets/DailyReportInfo.json";
|
private readonly string _dailyRptFilePath = "wwwroot/Assets/DailyReportInfo.json";
|
||||||
private readonly string _toolStateOwnerFilePath = "wwwroot/Assets/ToolStates.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;
|
_logger = logger;
|
||||||
_configuration = configuration;
|
_baseFTUrl = "http://mestsa008:50201/api/";
|
||||||
_baseUrl = "http://localhost: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()
|
public IActionResult DailyReport()
|
||||||
{
|
{
|
||||||
string baseFabTimeUrl = _baseUrl + "FabTime/";
|
string baseFabTimeUrl = _baseFTUrl + "FabTime/";
|
||||||
string baseScrapeDbUrl = _baseUrl + "ScrapeDB/";
|
string baseScrapeDbUrl = _baseDBUrl + "ScrapeDB/";
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user