From 368415cde24a35e90181d3bc001606d4b6bebf96 Mon Sep 17 00:00:00 2001 From: Paul Date: Fri, 25 Jul 2025 13:08:27 +0200 Subject: [PATCH] add health endpoint for monitoring --- src/qrzws/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qrzws/main.go b/src/qrzws/main.go index a42b923..769ba21 100644 --- a/src/qrzws/main.go +++ b/src/qrzws/main.go @@ -38,6 +38,9 @@ func RunServer(config config.Config) (err error) { e.Renderer = builtTemplates e.GET("/", p.Index) + e.GET("/health", func(c echo.Context) error { + return c.String(http.StatusOK, "OK") + }) e.GET("/static/*", func(c echo.Context) error { return static.GetStatic(&root.Files, c) })