#229 Resize cover-images on request before transfer

This commit is contained in:
2025-03-07 14:29:25 +01:00
parent c679d7c677
commit 6c5bc3685e
3 changed files with 40 additions and 3 deletions

View File

@ -57,7 +57,11 @@ builder.Services.AddDbContext<PgsqlContext>(options =>
$"Username={Environment.GetEnvironmentVariable("POSTGRES_USER")??"postgres"}; " +
$"Password={Environment.GetEnvironmentVariable("POSTGRES_PASSWORD")??"postgres"}"));
builder.Services.AddControllers().AddNewtonsoftJson(opts =>
builder.Services.AddControllers(options =>
{
options.AllowEmptyInputInBodyModelBinding = true;
})
.AddNewtonsoftJson(opts =>
{
opts.SerializerSettings.Converters.Add(new StringEnumConverter());
});