Updated appsettings.json file to change base api url based on environment. Also fixed bug in calculation of yield percentage.
This commit is contained in:
@ -6,7 +6,14 @@ namespace ReportingServices.UI.Controllers
|
||||
{
|
||||
public class PlanningReportController : Controller
|
||||
{
|
||||
private readonly string _baseUrl = "https://localhost:7196/api/ScrapeDB/";
|
||||
private readonly IConfiguration _configuration;
|
||||
private readonly string _baseUrl;
|
||||
|
||||
public PlanningReportController(IConfiguration configuration)
|
||||
{
|
||||
_configuration = configuration;
|
||||
_baseUrl = _configuration.GetValue<string>("BaseAPIAddress") + "ScrapeDB/";
|
||||
}
|
||||
|
||||
public IActionResult Index()
|
||||
{
|
||||
|
Reference in New Issue
Block a user