gin logging

This commit is contained in:
2022-09-12 09:52:44 +02:00
parent 3f443f52fd
commit f78d84dc8f
10 changed files with 183 additions and 71 deletions

16
internal/api/health.go Normal file
View File

@@ -0,0 +1,16 @@
package api
import (
"net/http"
"github.com/gin-gonic/gin"
)
func HealthRoute(app *gin.Engine) {
healthRoute := app.Group("/health")
healthRoute.GET("/ready", func(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"message": "healthy",
})
})
}