From 5514d8a8b5313cd38cfb091bdee4691797a89d72 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Wed, 17 Apr 2024 01:39:31 -0400 Subject: [PATCH] response with app version from health check route --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c32ae67..d9199ab 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,9 @@ func main() { e.GET("/", renderPage) e.GET("/service/health-check", func(c echo.Context) error { - return c.NoContent(http.StatusOK) + c.Response().Writer.WriteHeader(http.StatusOK) + c.Response().Write([]byte("APP VERSION: 1.0.0")) + return nil }) port := os.Getenv("PORT")