Fix service reference

This commit is contained in:
2025-08-03 19:05:43 +02:00
parent e65052d7f4
commit 49c88bdb66
2 changed files with 3 additions and 1 deletions

View File

@@ -8,6 +8,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\PresentPortal.ServiceDefaults\PresentPortal.ServiceDefaults.csproj"/> <ProjectReference Include="..\PresentPortal.ServiceDefaults\PresentPortal.ServiceDefaults.csproj"/>
<ProjectReference Include="..\PresentPortal.Shared\PresentPortal.Shared.csproj" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View File

@@ -1,3 +1,4 @@
using PresentPortal.Shared;
using PresentPortal.Web; using PresentPortal.Web;
using PresentPortal.Web.Components; using PresentPortal.Web.Components;
@@ -15,7 +16,7 @@ builder.Services.AddHttpClient<WeatherApiClient>(client =>
{ {
// This URL uses "https+http://" to indicate HTTPS is preferred over HTTP. // 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. // 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(); var app = builder.Build();