diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-02 15:28:03 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-10-02 15:28:03 +1100 |
commit | 5bbe2666d00d6707a6b18dc4a6ef8ffba5ce4566 (patch) | |
tree | a71a742855303adb34dfe9673a9c17efc8d57684 /src/cdn/routes/external.ts | |
parent | More embed improvements (diff) | |
download | server-5bbe2666d00d6707a6b18dc4a6ef8ffba5ce4566.tar.xz |
Use imagor for image resizing
Diffstat (limited to '')
-rw-r--r-- | src/cdn/routes/external.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cdn/routes/external.ts b/src/cdn/routes/external.ts index 33528a7b..32979a59 100644 --- a/src/cdn/routes/external.ts +++ b/src/cdn/routes/external.ts @@ -58,6 +58,8 @@ router.get("/:id", async (req: Request, res: Response) => { }); // this method is gross lol don't care +// It's also no longer actually used on Slowcord's official server. +// We actually use imagor now router.get("/resize/:url", async (req: Request, res: Response) => { const url = decodeURIComponent(req.params.url); const { width, height } = req.query; |