feat: add startup validation for Subsonic and Deezer connectivity

This commit is contained in:
V1ck3s
2026-01-04 17:27:40 +01:00
committed by Vickes
parent b3368d051c
commit 2a6191e9db
3 changed files with 281 additions and 2 deletions

View File

@@ -20,6 +20,9 @@ builder.Services.AddSingleton<ILocalLibraryService, LocalLibraryService>();
builder.Services.AddSingleton<IMusicMetadataService, DeezerMetadataService>();
builder.Services.AddSingleton<IDownloadService, DeezerDownloadService>();
// Startup validation - runs at application startup to validate configuration
builder.Services.AddHostedService<StartupValidationService>();
builder.Services.AddCors(options =>
{
options.AddDefaultPolicy(policy =>