Test use base address
This commit is contained in:
1 parent
4fa27ea626
commit
43cfa28d06
1 file changed
+1
-1
@@ -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