Test use base address
This commit is contained in:
@@ -10,7 +10,7 @@ builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
var apiBase = builder.Configuration["ApiBase"]
|
||||
?? throw new ArgumentException("API base address not found in config.");
|
||||
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(apiBase) });
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
||||
|
||||
builder.Services.AddSingleton<ITypewriterNotificationService, TypewriterNotificationService>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user