Code cleanup and formatting
This commit is contained in:
15
cmd/app/handler/health.go
Normal file
15
cmd/app/handler/health.go
Normal file
@@ -0,0 +1,15 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user