Skip to content

Commit

Permalink
Add api uri
Browse files Browse the repository at this point in the history
  • Loading branch information
TheToby1 committed Aug 29, 2024
1 parent 73d2ce8 commit 9478cc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/Model/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
builder.Services.AddHttpClient("local",
(h) => h.BaseAddress = new Uri(builder.HostEnvironment.BaseAddress));
builder.Services.AddHttpClient("api",
(h) => h.BaseAddress = new Uri("http://localhost:7071"));
(h) => h.BaseAddress = new Uri(builder.Configuration["Api_Uri"] ?? "http://localhost:7071"));

// TODO: Replace this with a proper http rest service
builder.Services.AddHttpClient<ICVService, JsonCVService>("local");
Expand Down

0 comments on commit 9478cc4

Please sign in to comment.