diff --git a/utils/build/docker/golang/app/gin/main.go b/utils/build/docker/golang/app/gin/main.go index 54f1a0fe86..507c787959 100644 --- a/utils/build/docker/golang/app/gin/main.go +++ b/utils/build/docker/golang/app/gin/main.go @@ -32,10 +32,10 @@ func main() { healthCheck, err := common.GetHealtchCheck() if err != nil { - c.JSON(http.StatusInternalServerError, err) + ctx.JSON(http.StatusInternalServerError, err) } - c.JSON(http.StatusOK, healthCheck) + ctx.JSON(http.StatusOK, healthCheck) }) r.Any("/waf", func(ctx *gin.Context) {