All checks were successful
continuous-integration/drone/push Build is passing
17 lines
323 B
Go
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)
|
|
}
|