17 lines
303 B
Go
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)
|
|
}
|