summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-04-26 02:16:16 +0200
committerRory& <root@rory.gay>2026-04-26 02:16:16 +0200
commit895539e9e23bb6519145b5afaa8502164de52353 (patch)
treee3c97da0c98bd772a254d2b80a984a86479205de /src/api
parentAdd deprecation warning for database config (diff)
downloadserver-ts-895539e9e23bb6519145b5afaa8502164de52353.tar.xz
Document why ImageProxy.ts exists
Diffstat (limited to 'src/api')
-rw-r--r--src/api/middlewares/ImageProxy.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/middlewares/ImageProxy.ts b/src/api/middlewares/ImageProxy.ts

index 66d39bd6..624769db 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);