diff --git a/common/utils.go b/common/utils.go index 9af4c46..cd74637 100644 --- a/common/utils.go +++ b/common/utils.go @@ -94,6 +94,7 @@ func GetGinApp() *gin.Engine { logrus.Printf("used %d ms %s %s query: %s body: %s", time.Since(began).Milliseconds(), c.Request.Method, c.FullPath(), c.Request.URL.RawQuery, body) }) + app.Any("/api/ping", func(c *gin.Context) { c.JSON(200, M{"msg": "pong"}) }) return app }