mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 11:44:07 +00:00
Document why ImageProxy.ts exists
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user