diff options
| author | Bobby <[email protected]> | 2026-02-03 14:50:13 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-02-03 14:50:13 +0530 |
| commit | e4d65624c49c11db7da46d05f5e4caeec79bd955 (patch) | |
| tree | 57d7e68bffa0592129d1a75af9f05896bb6f926d /router | |
| parent | ed36e0308c7cd3a6197c899cb16bfe65cc5194b4 (diff) | |
| download | metachan-e4d65624c49c11db7da46d05f5e4caeec79bd955.tar.xz metachan-e4d65624c49c11db7da46d05f5e4caeec79bd955.zip | |
Add genre-based anime retrieval with pagination and related database updates
Diffstat (limited to 'router')
| -rw-r--r-- | router/router.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/router/router.go b/router/router.go index 0a71947..14fa23e 100644 --- a/router/router.go +++ b/router/router.go @@ -13,6 +13,7 @@ func Initialize(router *fiber.App) { // Anime routes animeRouter := router.Group("/a") animeRouter.Get("/genres", controllers.GetGenres) + animeRouter.Get("/genres/:id", controllers.GetAnimeByGenre) animeRouter.Get("/:id", controllers.GetAnime) animeRouter.Get("/:id/episodes", controllers.GetAnimeEpisodes) animeRouter.Get("/:id/episodes/:episodeId", controllers.GetAnimeEpisode) |
