moved httpClient baseAddress to appsettings
This commit is contained in:
parent
2178ff54b6
commit
e72b4daf51
6 changed files with 15 additions and 3 deletions
|
@ -40,7 +40,7 @@ namespace DiscordBot
|
|||
|
||||
builder.Services.AddHttpClient(Constants.HTTP_CLIENT_NAME , httpClient =>
|
||||
{
|
||||
httpClient.BaseAddress = new Uri("https://localhost:7216/");
|
||||
httpClient.BaseAddress = new Uri(builder.Configuration["HttpClients:LiebWebsite"]);
|
||||
|
||||
httpClient.DefaultRequestHeaders.Add(
|
||||
HeaderNames.Accept, "application/vnd.github.v3+json");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue