Fix service reference
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user