diff options
author | uurgothat <cckhmck@gmail.com> | 2021-09-13 21:22:14 +0300 |
---|---|---|
committer | uurgothat <cckhmck@gmail.com> | 2021-09-13 21:22:14 +0300 |
commit | 9b10ab2d0b7a7a1c3c9a8b65a02518dffdbf04ba (patch) | |
tree | 13e14246612e53bfa51d63d862f258e377f93588 | |
parent | Merge pull request #358 from AlTech98/fix-356 (diff) | |
download | server-9b10ab2d0b7a7a1c3c9a8b65a02518dffdbf04ba.tar.xz |
add store endpoints
-rw-r--r-- | api/src/routes/store/applications.ts | 11 | ||||
-rw-r--r-- | api/src/routes/store/skus.ts | 11 |
2 files changed, 22 insertions, 0 deletions
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 |