summary refs log tree commit diff
diff options
context:
space:
mode:
authoruurgothat <cckhmck@gmail.com>2021-09-13 21:22:14 +0300
committeruurgothat <cckhmck@gmail.com>2021-09-13 21:22:14 +0300
commit9b10ab2d0b7a7a1c3c9a8b65a02518dffdbf04ba (patch)
tree13e14246612e53bfa51d63d862f258e377f93588
parentMerge pull request #358 from AlTech98/fix-356 (diff)
downloadserver-9b10ab2d0b7a7a1c3c9a8b65a02518dffdbf04ba.tar.xz
add store endpoints
-rw-r--r--api/src/routes/store/applications.ts11
-rw-r--r--api/src/routes/store/skus.ts11
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