Verified Commit 0f9c92f5 authored by Jae's avatar Jae
Browse files

Better health endpoint

parent 720c522c
Pipeline #126 passed with stage
in 44 seconds
......@@ -110,12 +110,6 @@ func main() {
store := persistence.NewInMemoryStore(time.Second)
r.GET("/health", func(c *gin.Context) {
c.JSON(200, gin.H{
"status": "ok",
})
})
r.GET("/me", func(c *gin.Context) {
c.JSON(200, gin.H{
"name": "Jae",
......@@ -303,5 +297,10 @@ func main() {
})
})
// Health
r.GET("/health", func(c *gin.Context) {
c.String(http.StatusOK, "OK")
})
r.Run(":2021")
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment