summary refs log tree commit diff
path: root/src/api/routes/stickers/#sticker_id/index.ts
blob: b484a7a117c52b7a30c4a98ca75a34bd868f004e (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({ where: { id: sticker_id } }));
});

export default router;