14 lines
256 B
Go
14 lines
256 B
Go
package server
|
|
|
|
// REFACTOR: UNIVERSAL SERVER CODE
|
|
import (
|
|
def "git.pbiernat.io/egommerce/api-entities/http"
|
|
"github.com/gofiber/fiber/v2"
|
|
)
|
|
|
|
func (s *Server) HealthHandler(c *fiber.Ctx) error {
|
|
return c.JSON(&def.HealthResponse{
|
|
Status: "OK",
|
|
})
|
|
}
|