aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2023-08-03 01:20:06 +0530
committerRitesh Ghosh <[email protected]>2023-08-03 01:20:06 +0530
commit02ece0298402a84b3b97f1320ad5d1a0afb67bba (patch)
tree862b856d249e903f1efb41a0af85a4be9733e715 /src
parent1ae03cecd9b2fa5987601cfb07ae1c4e8c552dfb (diff)
downloadaniwatch-api-02ece0298402a84b3b97f1320ad5d1a0afb67bba.tar.xz
aniwatch-api-02ece0298402a84b3b97f1320ad5d1a0afb67bba.zip
feat(homeRoute): added home route
Diffstat (limited to 'src')
-rw-r--r--src/routes/index.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/index.ts b/src/routes/index.ts
index fc1560e..af12d76 100644
--- a/src/routes/index.ts
+++ b/src/routes/index.ts
@@ -1,8 +1,11 @@
import { Router, IRouter } from "express";
-import { getAnimeCategory, getAnimeSearch } from "../controllers";
+import { getAnimeCategory, getAnimeSearch, getHomePage } from "../controllers";
const router: IRouter = Router();
+// /anime/home
+router.get("/home", getHomePage);
+
// /anime/search?q=${query}&page=${page}
router.get("/search", getAnimeSearch);