From d23f4bbe98bec0cdef0c1a4cce961de2c2a83ab1 Mon Sep 17 00:00:00 2001 From: uurgothat Date: Thu, 30 Sep 2021 18:57:53 +0300 Subject: hotfix for misc routes --- api/src/routes/store/published-listings/applications.ts | 3 ++- api/src/routes/store/published-listings/skus.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'api/src/routes/store') diff --git a/api/src/routes/store/published-listings/applications.ts b/api/src/routes/store/published-listings/applications.ts index 53b61c29..f06a01e4 100644 --- a/api/src/routes/store/published-listings/applications.ts +++ b/api/src/routes/store/published-listings/applications.ts @@ -3,8 +3,9 @@ import { route } from "@fosscord/api"; const router: Router = Router(); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/:id", route({}), async (req: Request, res: Response) => { //TODO + const id = req.params.id; res.json({ id: "", summary: "", diff --git a/api/src/routes/store/published-listings/skus.ts b/api/src/routes/store/published-listings/skus.ts index 53b61c29..f06a01e4 100644 --- a/api/src/routes/store/published-listings/skus.ts +++ b/api/src/routes/store/published-listings/skus.ts @@ -3,8 +3,9 @@ import { route } from "@fosscord/api"; const router: Router = Router(); -router.get("/", route({}), async (req: Request, res: Response) => { +router.get("/:id", route({}), async (req: Request, res: Response) => { //TODO + const id = req.params.id; res.json({ id: "", summary: "", -- cgit 1.5.1