refactor(client): replace hardcoded API URLs with ApiRoutes constants

Centralizes all API endpoint strings in ApiRoutes for consistency and
easier maintenance. Adds Hubs class for SignalR endpoints. Removes
completed plan files.
This commit is contained in:
Joseph Doherty
2026-01-28 08:33:48 -05:00
parent 1e21e33ade
commit daaeba2004
9 changed files with 22 additions and 1368 deletions
@@ -1,4 +1,5 @@
using System.Net.Http.Json;
using JdeScoping.Core.ApiContracts;
using JdeScoping.Core.Models.Infrastructure;
namespace JdeScoping.Client.Services;
@@ -30,10 +31,8 @@ public class RefreshStatusService : IRefreshStatusService
{
try
{
var minDtStr = minDt.ToString("yyyy-MM-dd");
var maxDtStr = maxDt.ToString("yyyy-MM-dd");
var result = await _httpClient.GetFromJsonAsync<List<DataUpdateDto>>(
$"api/refresh-status?minDT={minDtStr}&maxDT={maxDtStr}");
ApiRoutes.RefreshStatus.Get(minDt, maxDt));
return result ?? [];
}
catch (Exception ex)