too much for one commit
This commit is contained in:
@@ -6,4 +6,11 @@ builder.Services.AddAuthorizationCore();
|
||||
builder.Services.AddCascadingAuthenticationState();
|
||||
builder.Services.AddAuthenticationStateDeserialization();
|
||||
|
||||
// Register HttpClient with the BFF base address so pages can call /api/* endpoints.
|
||||
builder.Services.AddScoped(sp => new HttpClient
|
||||
{
|
||||
BaseAddress = new Uri(builder.HostEnvironment.BaseAddress),
|
||||
Timeout = TimeSpan.FromMinutes(15)
|
||||
});
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
|
||||
Reference in New Issue
Block a user