Add HttpProxyService

This commit is contained in:
pcjones
2024-04-15 00:48:27 +02:00
parent e888a10366
commit cee3c12daa
2 changed files with 87 additions and 2 deletions

View File

@@ -56,13 +56,13 @@ internal class Program
builder.AddLidarrSupport();
builder.AddReadarrSupport();
builder.Services.AddSingleton<CacheService>();
builder.AddProxyRequestService();
builder.Services.AddSingleton<ProxyRequestService>();
builder.Services.AddSingleton<IHostedService, HttpProxyService>();
var app = builder.Build();
GlobalStaticLogger.Initialize(app.Services.GetService<ILoggerFactory>()!);
app.UseHttpsRedirection();
app.UseAuthorization();
app.MapControllerRoute(name: "caps",