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 | 662c78aae16dd886d4f33ff9c8baea3031a72167 (patch) | |
tree | 96048bd8b20d5674048d49cd32683eec005bdfd7 /api/src | |
parent | Merge pull request #358 from AlTech98/fix-356 (diff) | |
download | server-662c78aae16dd886d4f33ff9c8baea3031a72167.tar.xz |
add store endpoints
Diffstat (limited to 'api/src')
-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 |