Fixed a typo in appsettings.Development.json file for API and setting base URL in the planning report controller.

This commit is contained in:
Daniel Wathen
2023-01-17 15:33:01 -07:00
parent 94ea7502a3
commit a0c3e66dc1
2 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using ReportingServices.Shared.HelperClasses;
using ReportingServices.Shared.Models.PlanningReport;
using ReportingServices.UI.Models;
namespace ReportingServices.UI.Controllers;
@ -9,10 +10,10 @@ public class PlanningReportController : Controller
private readonly ILogger<PlanningReportController> _logger;
private readonly string _baseUrl;
public PlanningReportController(ILogger<PlanningReportController> logger)
public PlanningReportController(ILogger<PlanningReportController> logger, AppSettings appSettings)
{
_logger = logger;
_baseUrl = "http://localhost:50201/api/" + "ScrapeDB/";
_baseUrl = appSettings.BaseAPIAddress;
_logger.LogInformation("Base API Address: {baseUrl}", _baseUrl);
}