From 1f9d3847e04f82c231aaeb99bde371b692361164 Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Mon, 1 Apr 2024 19:49:02 +0200 Subject: [PATCH] v1.2.0: lib: add health path Signed-off-by: GnomeZworc --- lib/health/status.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/health/status.go diff --git a/lib/health/status.go b/lib/health/status.go new file mode 100644 index 0000000..0d9ea5e --- /dev/null +++ b/lib/health/status.go @@ -0,0 +1,11 @@ +package health + +import ( + "net/http" + + "github.com/labstack/echo/v4" +) + +func Health(c echo.Context) error { + return c.NoContent(http.StatusOK) +}