add /healthz

This commit is contained in:
Florian Herrengt 2022-12-09 17:07:14 +00:00
parent fde8e32f7a
commit 1ce14e7d36
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ func setupRouter() *gin.Engine {
if err != nil {
panic(err)
}
r.GET("/healthz", func(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{
"ok": 1,
})
})
r.GET("/n.json", func(c *gin.Context) {
id, _ := uuid.NewRandom()