diff options
| author | Ritesh Ghosh <[email protected]> | 2023-08-02 21:13:30 +0530 |
|---|---|---|
| committer | Ritesh Ghosh <[email protected]> | 2023-08-02 21:13:30 +0530 |
| commit | dd3df97493e4a530e065819bf3f998faad6fb5ee (patch) | |
| tree | a9bb92100a22e218ae746fb68c09bfeffb756f36 /src | |
| parent | a42163e884417cfcbec25c7018cf2b75ff637402 (diff) | |
| download | aniwatch-api-dd3df97493e4a530e065819bf3f998faad6fb5ee.tar.xz aniwatch-api-dd3df97493e4a530e065819bf3f998faad6fb5ee.zip | |
feat(routes): added route
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/routes/index.ts b/src/routes/index.ts index 928f14e..fc1560e 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -1,8 +1,11 @@ import { Router, IRouter } from "express"; -import { getAnimeCategory } from "../controllers"; +import { getAnimeCategory, getAnimeSearch } from "../controllers"; const router: IRouter = Router(); +// /anime/search?q=${query}&page=${page} +router.get("/search", getAnimeSearch); + // /anime/:category?page=${page} router.get("/:category", getAnimeCategory); |
