summary refs log tree commit diff
path: root/api/src/routes/store
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-18 01:49:17 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-09-18 01:49:17 +0200
commit54412a3364b1dc7f0703fe724a638ae17d7c4142 (patch)
tree6f5b66685fff7e3227dbf5989e66eecf48c14be9 /api/src/routes/store
parent:bug: fix body parse treating null not as undefined (except for icons/avatars) (diff)
downloadserver-54412a3364b1dc7f0703fe724a638ae17d7c4142.tar.xz
:pencil: add default route description to all routes
Diffstat (limited to 'api/src/routes/store')
-rw-r--r--api/src/routes/store/applications.ts9
-rw-r--r--api/src/routes/store/skus.ts7
2 files changed, 9 insertions, 7 deletions
diff --git a/api/src/routes/store/applications.ts b/api/src/routes/store/applications.ts

index 69cd716d..352c1752 100644 --- a/api/src/routes/store/applications.ts +++ b/api/src/routes/store/applications.ts
@@ -1,11 +1,12 @@ import { Request, Response, Router } from "express"; +import { route } from "@fosscord/api"; const router: Router = Router(); -router.get("/applications/:id", async (req: Request, res: Response) => { - //TODO - const { id } = req.params; +router.get("/applications/:id", route({}), async (req: Request, res: Response) => { + //TODO + const { id } = req.params; res.json([]).status(200); }); -export default router; \ No newline at end of file +export default router; diff --git a/api/src/routes/store/skus.ts b/api/src/routes/store/skus.ts
index 5c37850d..7d0e12eb 100644 --- a/api/src/routes/store/skus.ts +++ b/api/src/routes/store/skus.ts
@@ -1,11 +1,12 @@ import { Request, Response, Router } from "express"; +import { route } from "@fosscord/api"; const router: Router = Router(); -router.get("/skus/:id", async (req: Request, res: Response) => { +router.get("/skus/:id", route({}), async (req: Request, res: Response) => { //TODO - const { id } = req.params; + const { id } = req.params; res.json([]).status(200); }); -export default router; \ No newline at end of file +export default router;