aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;