summary refs log tree commit diff
path: root/src/api/routes/stickers/#sticker_id/index.ts
blob: 16eb20597928b762311448d30c0383c3cb7494da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import { route } from "@fosscord/api";
import { Sticker } from "@fosscord/util";
import { Request, Response, Router } from "express";
const router = Router();

router.get("/", route({}), async (req: Request, res: Response) => {
	const { sticker_id } = req.params;

	res.json(await Sticker.find({ where: { id: sticker_id } }));
});

export default router;