Files
go_http_server/cmd/app/handler/health.go
2026-05-19 04:09:33 -04:00

16 lines
264 B
Go

package handler
import (
"net/http"
"github.com/labstack/echo/v4"
)
func (h *Handler) setupHealthCheckRoutes(app *echo.Echo) {
app.GET("/health", h.healthCheck)
}
func (h *Handler) healthCheck(c echo.Context) error {
return c.String(http.StatusOK, "OK")
}