From 0bbe30394571a97b3b60d8eed92708c40e362e3b Mon Sep 17 00:00:00 2001 From: yedongfu Date: Sun, 23 May 2021 11:06:49 +0800 Subject: [PATCH] update --- common/utils.go | 1 + 1 file changed, 1 insertion(+) 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 }