aboutsummaryrefslogtreecommitdiff
path: root/router
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-04-18 19:28:01 +0530
committerBobby <[email protected]>2025-04-18 19:28:01 +0530
commit5dc2f648cf3d9634cfb8763cebc6f1dec4042914 (patch)
tree0a5e84fd9915f6f4e93f4fe026d04c0dd4a5db3c /router
parent5c7536ec347c4c51172960da0c3f5857642fd223 (diff)
downloadmetachan-5dc2f648cf3d9634cfb8763cebc6f1dec4042914.tar.xz
metachan-5dc2f648cf3d9634cfb8763cebc6f1dec4042914.zip
basic anime details with episodes; added jikan and anilist as metadata fetchers; added tmdb for fetching episode descriptions
Diffstat (limited to 'router')
-rw-r--r--router/router.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/router/router.go b/router/router.go
index 1c48806..911ec63 100644
--- a/router/router.go
+++ b/router/router.go
@@ -10,6 +10,10 @@ func Initialize(router *fiber.App) {
// Health
router.Get("/health", controllers.HealthStatus)
+ // Anime routes
+ animeRouter := router.Group("/anime")
+ animeRouter.Get("/:mal_id", controllers.GetAnimeByMALID)
+
// 404 Default
router.Use(func(c *fiber.Ctx) error {
return c.Status(fiber.StatusNotFound).JSON(fiber.Map{