aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRitesh Ghosh <[email protected]>2023-12-17 19:35:52 +0530
committerRitesh Ghosh <[email protected]>2023-12-17 19:35:52 +0530
commita19d705c909827566d91841360aa472bdfbf6e82 (patch)
tree3b1baed62c99a9b900a140d69d6c532d4a287cad /src
parent750386f04c5aec410ae54b1f2d0119271842c4da (diff)
downloadaniwatch-api-a19d705c909827566d91841360aa472bdfbf6e82.tar.xz
aniwatch-api-a19d705c909827566d91841360aa472bdfbf6e82.zip
feat(estimatedSchedule): add `/schedule` route
Diffstat (limited to 'src')
-rw-r--r--src/routes/index.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/routes/index.ts b/src/routes/index.ts
index e3f6d8e..7046ae1 100644
--- a/src/routes/index.ts
+++ b/src/routes/index.ts
@@ -8,6 +8,7 @@ import {
getEpisodeServers,
getProducerAnimes,
getAnimeAboutInfo,
+ getEstimatedSchedule,
getAnimeEpisodeSources,
getAnimeSearchSuggestion,
} from "../controllers/index.js";
@@ -42,6 +43,9 @@ router.get("/servers", getEpisodeServers);
// /anime/episode-srcs?id=${episodeId}?server=${server}&category=${category (dub or sub)}
router.get("/episode-srcs", getAnimeEpisodeSources);
+// /anime/schedule?date=${date}
+router.get("/schedule", getEstimatedSchedule);
+
// /anime/producer/${name}?page=${page}
router.get("/producer/:name", getProducerAnimes);