From 49c88bdb667513f3d551118518a00dfb140481e0 Mon Sep 17 00:00:00 2001 From: ThompsonNye Date: Sun, 3 Aug 2025 19:05:43 +0200 Subject: [PATCH] Fix service reference --- PresentPortal.Web/PresentPortal.Web.csproj | 1 + PresentPortal.Web/Program.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/PresentPortal.Web/PresentPortal.Web.csproj b/PresentPortal.Web/PresentPortal.Web.csproj index aa2a367..eb1bb8d 100644 --- a/PresentPortal.Web/PresentPortal.Web.csproj +++ b/PresentPortal.Web/PresentPortal.Web.csproj @@ -8,6 +8,7 @@ + diff --git a/PresentPortal.Web/Program.cs b/PresentPortal.Web/Program.cs index 8283ec5..f2ed189 100644 --- a/PresentPortal.Web/Program.cs +++ b/PresentPortal.Web/Program.cs @@ -1,3 +1,4 @@ +using PresentPortal.Shared; using PresentPortal.Web; using PresentPortal.Web.Components; @@ -15,7 +16,7 @@ builder.Services.AddHttpClient(client => { // This URL uses "https+http://" to indicate HTTPS is preferred over HTTP. // Learn more about service discovery scheme resolution at https://aka.ms/dotnet/sdschemes. - client.BaseAddress = new("https+http://apiservice"); + client.BaseAddress = new($"https+http://{ServiceNames.Api}"); }); var app = builder.Build();