response with app version from health check route

This commit is contained in:
jc 2024-04-17 01:39:31 -04:00
commit 5514d8a8b5
No known key found for this signature in database

View file

@ -44,7 +44,9 @@ func main() {
e.GET("/", renderPage) e.GET("/", renderPage)
e.GET("/service/health-check", func(c echo.Context) error { 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") port := os.Getenv("PORT")