snyggade till hardcover. la til author lookup

This commit is contained in:
2025-09-18 17:57:00 +02:00
parent 1e90a68a6e
commit 0af47751cf
3 changed files with 173 additions and 76 deletions

View File

@@ -35,6 +35,7 @@ builder.Services.AddScoped<IGraphQLClient>(s => new GraphQLHttpClient(new GraphQ
HttpMessageHandler = s.GetRequiredService<HardcoverAuthenticationHandler>(),
EndPoint = new Uri(config.HardcoverApiUrl),
}, new NewtonsoftJsonSerializer()));
builder.Services.AddScoped<HardcoverClient>();
//databases
builder.Services.AddDbContext<SqliteCalibreContext>(options => options.UseSqlite($"Data Source={config.CalibreDb};Mode=ReadOnly;"));