diff options
| author | Bobby <[email protected]> | 2025-04-06 12:03:07 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-04-06 12:03:07 +0530 |
| commit | 8d034c4ad93881ef95aae9760baf6415c28de839 (patch) | |
| tree | 348746bb78356cc72fa871e623c6ea714b5b2bd5 /router | |
| parent | c947eb5f6c9bdcd624347f02a1d0b0bc65d96622 (diff) | |
| download | metachan-8d034c4ad93881ef95aae9760baf6415c28de839.tar.xz metachan-8d034c4ad93881ef95aae9760baf6415c28de839.zip | |
added health route for server stats
Diffstat (limited to 'router')
| -rw-r--r-- | router/router.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/router/router.go b/router/router.go index 8c32c13..1c48806 100644 --- a/router/router.go +++ b/router/router.go @@ -1,8 +1,14 @@ package router -import "github.com/gofiber/fiber/v2" +import ( + "metachan/controllers" + + "github.com/gofiber/fiber/v2" +) func Initialize(router *fiber.App) { + // Health + router.Get("/health", controllers.HealthStatus) // 404 Default router.Use(func(c *fiber.Ctx) error { |
