summary refs log tree commit diff
path: root/src/api/routes/sticker-packs/index.ts
blob: dddc7f709402c1c05e6c539d0350ac9237b49225 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
import { route } from "@fosscord/api";
import { StickerPack } from "@fosscord/util";
import { Request, Response, Router } from "express";

const router: Router = Router();

router.get("/", route({}), async (req: Request, res: Response) => {
	const sticker_packs = await StickerPack.find({ relations: ["stickers"] });

	res.json({ sticker_packs });
});

export default router;