healthz: use proper JSON
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
leo 2023-06-04 11:32:57 +02:00
parent 5f8548958f
commit afc97407f6
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -57,7 +57,7 @@ func Index() echo.HandlerFunc {
func Healthz() echo.HandlerFunc {
return func(c echo.Context) error {
return c.String(http.StatusOK, "{\"status\": \"OK\"}")
return c.JSON(http.StatusOK, struct{ Status string }{Status: "OK"})
}
}