summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-23 07:26:57 +0100
committerRory& <root@rory.gay>2026-02-23 07:26:57 +0100
commit7f5fae417a3d3d9ff662814a3d527782e90102af (patch)
tree83e7fc7b7fd9aa81938e7afff3a526e1074c0ec3
parentFaster pings (diff)
downloadserver-ts-7f5fae417a3d3d9ff662814a3d527782e90102af.tar.xz
cdn: drop hash-addressed version of emojis route
-rw-r--r--src/cdn/routes/emojis.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cdn/routes/emojis.ts b/src/cdn/routes/emojis.ts

index 56eae53e..b0e95f6f 100644 --- a/src/cdn/routes/emojis.ts +++ b/src/cdn/routes/emojis.ts
@@ -62,7 +62,7 @@ router.post("/:guild_id", multer.single("file"), async (req: Request, res: Respo }); }); -router.get("/:guild_id", cache, async (req: Request, res: Response) => { +router.get("/:emoji_id", cache, async (req: Request, res: Response) => { let { guild_id } = req.params as { [key: string]: string }; guild_id = guild_id.split(".")[0]; // remove .file extension const path = `${pathPrefix}/${guild_id}`; @@ -89,8 +89,6 @@ export const getAvatar = async (req: Request, res: Response) => { return res.send(file); }; -router.get("/:guild_id/:hash", cache, getAvatar); - router.delete("/:guild_id/:id", async (req: Request, res: Response) => { if (req.headers.signature !== Config.get().security.requestSignature) throw new HTTPError("Invalid request signature"); const { guild_id, id } = req.params as { [key: string]: string };