catalog-service/src/internal/app/server/health_handler.go
Piotr Biernat 39b94713b8
All checks were successful
continuous-integration/drone/push Build is passing
Added KV Config support and updated build scripts
2022-12-05 23:47:35 +01:00

17 lines
323 B
Go

package server
import (
def "git.pbiernat.dev/egommerce/catalog-service/internal/app/definition"
"github.com/gofiber/fiber/v2"
)
func (s *Server) HealthHandler(c *fiber.Ctx) error {
return c.JSON(&def.HealthResponse{
Status: "OK",
})
}
func (s *Server) ConfigHandler(c *fiber.Ctx) error {
return c.JSON(s.conf)
}