Manga Cover request retrieve sizing from query instead of body

This commit is contained in:
2025-03-13 16:35:29 +01:00
parent 34ec185125
commit a43901564b
2 changed files with 5 additions and 19 deletions

View File

@ -1,13 +0,0 @@
using SixLabors.ImageSharp;
namespace API.APIEndpointRecords;
public record CoverFormatRequestRecord(Size size)
{
public bool Validate()
{
if (size.Height <= 0 || size.Width <= 0 || size.Height > 65535 || size.Width > 65535) //JPEG max size
return false;
return true;
}
}