diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-18 01:49:17 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-09-18 01:49:17 +0200 |
commit | 54412a3364b1dc7f0703fe724a638ae17d7c4142 (patch) | |
tree | 6f5b66685fff7e3227dbf5989e66eecf48c14be9 /api/src/routes/store | |
parent | :bug: fix body parse treating null not as undefined (except for icons/avatars) (diff) | |
download | server-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.ts | 9 | ||||
-rw-r--r-- | api/src/routes/store/skus.ts | 7 |
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; |