This commit is contained in:
yedongfu 2021-05-23 11:06:49 +08:00
parent c05a9c3181
commit 0bbe303945

View File

@ -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
}