From 9b10ab2d0b7a7a1c3c9a8b65a02518dffdbf04ba Mon Sep 17 00:00:00 2001 From: uurgothat Date: Mon, 13 Sep 2021 21:22:14 +0300 Subject: [PATCH] add store endpoints --- api/src/routes/store/applications.ts | 11 +++++++++++ api/src/routes/store/skus.ts | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 api/src/routes/store/applications.ts create mode 100644 api/src/routes/store/skus.ts diff --git a/api/src/routes/store/applications.ts b/api/src/routes/store/applications.ts new file mode 100644 index 00000000..69cd716d --- /dev/null +++ b/api/src/routes/store/applications.ts @@ -0,0 +1,11 @@ +import { Request, Response, Router } from "express"; + +const router: Router = Router(); + +router.get("/applications/:id", async (req: Request, res: Response) => { + //TODO + const { id } = req.params; + res.json([]).status(200); +}); + +export default router; \ No newline at end of file diff --git a/api/src/routes/store/skus.ts b/api/src/routes/store/skus.ts new file mode 100644 index 00000000..5c37850d --- /dev/null +++ b/api/src/routes/store/skus.ts @@ -0,0 +1,11 @@ +import { Request, Response, Router } from "express"; + +const router: Router = Router(); + +router.get("/skus/:id", async (req: Request, res: Response) => { + //TODO + const { id } = req.params; + res.json([]).status(200); +}); + +export default router; \ No newline at end of file