aboutsummaryrefslogtreecommitdiff
path: root/router/router.go
diff options
context:
space:
mode:
Diffstat (limited to 'router/router.go')
-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{