aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2023-08-02 13:42:06 +0530
committerRitesh Ghosh <[email protected]>2023-08-02 13:42:06 +0530
commitbad7933de7f61ea7ed62495c3b26e7b007bd133f (patch)
tree5016ae750c81343d908cb426589050f5d967e45a /src
parent38ae13dcdce8b49970d8f51d314856767be40ab1 (diff)
downloadaniwatch-api-bad7933de7f61ea7ed62495c3b26e7b007bd133f.tar.xz
aniwatch-api-bad7933de7f61ea7ed62495c3b26e7b007bd133f.zip
feat: added anime route
Diffstat (limited to 'src')
-rw-r--r--src/routes/index.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/routes/index.ts b/src/routes/index.ts
new file mode 100644
index 0000000..928f14e
--- /dev/null
+++ b/src/routes/index.ts
@@ -0,0 +1,9 @@
+import { Router, IRouter } from "express";
+import { getAnimeCategory } from "../controllers";
+
+const router: IRouter = Router();
+
+// /anime/:category?page=${page}
+router.get("/:category", getAnimeCategory);
+
+export default router;