catalog-service/src/internal/server/health_handler.go
Piotr Biernat 8fac6f7e61
Some checks failed
continuous-integration/drone/push Build is failing
Refactor
2023-04-10 15:13:53 +02:00

17 lines
303 B
Go

package server
import (
def "git.pbiernat.dev/egommerce/api-entities/http"
"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.Config)
}