moved httpClient baseAddress to appsettings

This commit is contained in:
Sarah Faey 2022-11-22 22:51:37 +01:00
parent 2178ff54b6
commit e72b4daf51
6 changed files with 15 additions and 3 deletions

View file

@ -64,7 +64,7 @@ builder.Services.AddAuthorization(options =>
builder.Services.AddHttpClient(Constants.HttpClientName , httpClient =>
{
httpClient.BaseAddress = new Uri("http://localhost:5240/");
httpClient.BaseAddress = new Uri(builder.Configuration["HttpClients:DiscordBot"]);
// using Microsoft.Net.Http.Headers;
// The GitHub API requires two headers.