response with app version from health check route
This commit is contained in:
parent
68a47dbfaf
commit
5514d8a8b5
1 changed files with 3 additions and 1 deletions
4
main.go
4
main.go
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue