From 895539e9e23bb6519145b5afaa8502164de52353 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 26 Apr 2026 02:16:16 +0200 Subject: [PATCH] Document why ImageProxy.ts exists --- src/api/middlewares/ImageProxy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts index 66d39bd63..624769db5 100644 --- a/src/api/middlewares/ImageProxy.ts +++ b/src/api/middlewares/ImageProxy.ts @@ -36,6 +36,7 @@ const sharpSupported = new Set(["image/jpeg", "image/png", "image/bmp", "image/t const jimpSupported = new Set(["image/jpeg", "image/png", "image/bmp", "image/tiff", "image/gif"]); const resizeSupported = new Set([...sharpSupported, ...jimpSupported]); +// This is meant to be used instead of Imagor export async function ImageProxy(req: Request, res: Response) { const path = req.originalUrl.split("/").slice(2);