✨ stickers

This commit is contained in:
Flam3rboy
2021-10-14 19:46:45 +02:00
parent 4e6ffcbc4f
commit ded81bcd29
2 changed files with 86 additions and 0 deletions
@@ -0,0 +1,12 @@
import { Sticker } from "@fosscord/util";
import { Router, Request, Response } from "express";
import { route } from "@fosscord/api";
const router = Router();
router.get("/", route({}), async (req: Request, res: Response) => {
const { sticker_id } = req.params;
res.json(await Sticker.find({ id: sticker_id }));
});
export default router;