summaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
Diffstat (limited to 'handlers')
-rw-r--r--handlers/handlers.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/handlers/handlers.go b/handlers/handlers.go
index c15da0a..b0a0c29 100644
--- a/handlers/handlers.go
+++ b/handlers/handlers.go
@@ -35,6 +35,10 @@ func init() {
}
}
+func HealthCheck(c echo.Context) error {
+ return c.JSON(http.StatusOK, map[string]string{"message": "API is running!"})
+}
+
// handleError handles errors by logging and returning a JSON response
func handleError(c echo.Context, errMsg string, status int) error {
log.Println(errMsg)