blob: 293ca08941f108c4d1c46837cc17d2a26726f1f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
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;
|