summary refs log tree commit diff
path: root/api/src/routes/sticker-packs/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/routes/sticker-packs/index.ts')
-rw-r--r--api/src/routes/sticker-packs/index.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/api/src/routes/sticker-packs/index.ts b/api/src/routes/sticker-packs/index.ts
index d671c161..e6560d12 100644
--- a/api/src/routes/sticker-packs/index.ts
+++ b/api/src/routes/sticker-packs/index.ts
@@ -1,11 +1,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) => {
-	//TODO
-	res.json({ sticker_packs: [] }).status(200);
+	const sticker_packs = await StickerPack.find({ relations: ["stickers"] });
+
+	res.json({ sticker_packs });
 });
 
 export default router;