Brijesh's Git Server — k3yst0n3 @ 90706b0412aaed46082b4bb5e78238a3f1630d06

handlers/health_check.go (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
package handlers

import (
	"net/http"

	"github.com/labstack/echo/v4"
)

func HealthCheckHandler(c echo.Context) error {
	return c.JSON(
		http.StatusOK,
		map[string]string{
			"status": "okay",
		},
	)
}