Skip to content

Commit

Permalink
feat: ping api (close #3752)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Mar 7, 2023
1 parent 00ff0a4 commit ebcbb29
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ func Init(e *gin.Engine) {
}
Cors(e)
g := e.Group(conf.URL.Path)
g.Any("/ping", func(c *gin.Context) {
c.String(200, "pong")
})
common.SecretKey = []byte(conf.Conf.JwtSecret)
g.Use(middlewares.StoragesLoaded)
if conf.Conf.MaxConnections > 0 {
Expand Down

0 comments on commit ebcbb29

Please sign in to comment.