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

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;