Skip to content

Commit

Permalink
Remove extra HttpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Nov 19, 2024
1 parent c8b1906 commit 70c4709
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Pkmds.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
builder.RootComponents.Add<HeadOutlet>("head::after");

services
.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) })
.AddScoped(_ => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) })
.AddMudServices()
.AddFileSystemAccessService()
.AddScoped(_ => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) })
.AddScoped<IAppState, AppState>()
.AddScoped<IRefreshService, RefreshService>()
.AddScoped<IAppService, AppService>()
Expand Down

0 comments on commit 70c4709

Please sign in to comment.