Code cleanup

This commit is contained in:
Andriy
2023-07-29 15:03:45 +03:00
parent 5e4183acfa
commit a24332370d
36 changed files with 46 additions and 111 deletions
+2 -1
View File
@@ -29,9 +29,10 @@ public class ContentStore : Module
{
services.AddOption<AllowNsfw>();
var kittiesConfig = Configuration.GetSection("KittiesService");
services.AddHttpClient<IKittiesApi, KittiesApi>(c =>
{
var kittiesConfig = Configuration.GetSection("KittiesService");
c.BaseAddress = kittiesConfig.GetValue<Uri>("Uri");
c.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(
"Bearer",