diff options
| author | Priyansh <[email protected]> | 2025-08-19 13:19:30 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2025-08-19 13:19:30 +0530 |
| commit | 9fbf28c2f77ec74c75a5274cbda897217ceaf571 (patch) | |
| tree | 87dab6adda634a08b3b1cf74c0dd1e616113aa30 /router | |
| parent | 6a65e3927506b0e46f18c9c1b41e952418bfd78e (diff) | |
| download | metachan-9fbf28c2f77ec74c75a5274cbda897217ceaf571.tar.xz metachan-9fbf28c2f77ec74c75a5274cbda897217ceaf571.zip | |
episodes router; anilist support; general fixes
Diffstat (limited to 'router')
| -rw-r--r-- | router/router.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/router/router.go b/router/router.go index 911ec63..b55014a 100644 --- a/router/router.go +++ b/router/router.go @@ -11,8 +11,9 @@ func Initialize(router *fiber.App) { router.Get("/health", controllers.HealthStatus) // Anime routes - animeRouter := router.Group("/anime") - animeRouter.Get("/:mal_id", controllers.GetAnimeByMALID) + animeRouter := router.Group("/a") + animeRouter.Get("/:id", controllers.GetAnimeByMALID) + animeRouter.Get("/:id/episodes", controllers.GetAnimeEpisodesByMALID) // 404 Default router.Use(func(c *fiber.Ctx) error { |
