diff --git a/src/routes/avatars.ts b/src/routes/avatars.ts index 3d99fb86..60befe2c 100644 --- a/src/routes/avatars.ts +++ b/src/routes/avatars.ts @@ -36,7 +36,7 @@ router.post("/:user_id", multer.single("file"), async (req: Request, res: Respon await storage.set(path, buffer); return res.json({ - hash, + id: hash, content_type: type.mime, size, url: `${endpoint}${req.baseUrl}/${user_id}/${hash}`,