summary refs log tree commit diff
path: root/api/src/routes/sticker-packs
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-21 22:52:30 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-21 22:52:30 +0200
commit2a094c603a35c7174022ec2d2ffa42fa28508e3b (patch)
tree6d408fbe2e2e9088786208d30509dde8005e73c3 /api/src/routes/sticker-packs
parent:bug: fix unittests (diff)
downloadserver-2a094c603a35c7174022ec2d2ffa42fa28508e3b.tar.xz
:sparkles: generate openapi documentation
Diffstat (limited to 'api/src/routes/sticker-packs')
-rw-r--r--api/src/routes/sticker-packs/#id/index.ts5
-rw-r--r--api/src/routes/sticker-packs/index.ts5
2 files changed, 6 insertions, 4 deletions
diff --git a/api/src/routes/sticker-packs/#id/index.ts b/api/src/routes/sticker-packs/#id/index.ts

index 2344a48f..7f723e97 100644 --- a/api/src/routes/sticker-packs/#id/index.ts +++ b/api/src/routes/sticker-packs/#id/index.ts
@@ -1,8 +1,9 @@ import { Request, Response, Router } from "express"; +import { route } from "@fosscord/api"; const router: Router = Router(); -router.get("/", async (req: Request, res: Response) => { +router.get("/", route({}), async (req: Request, res: Response) => { //TODO res.json({ id: "", @@ -15,4 +16,4 @@ router.get("/", async (req: Request, res: Response) => { }).status(200); }); -export default router; \ No newline at end of file +export default router; diff --git a/api/src/routes/sticker-packs/index.ts b/api/src/routes/sticker-packs/index.ts
index 6c4e46d8..d671c161 100644 --- a/api/src/routes/sticker-packs/index.ts +++ b/api/src/routes/sticker-packs/index.ts
@@ -1,10 +1,11 @@ import { Request, Response, Router } from "express"; +import { route } from "@fosscord/api"; const router: Router = Router(); -router.get("/", async (req: Request, res: Response) => { +router.get("/", route({}), async (req: Request, res: Response) => { //TODO res.json({ sticker_packs: [] }).status(200); }); -export default router; \ No newline at end of file +export default router;