mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-21 20:18:47 +08:00
feat: ping api (close #3752)
This commit is contained in:
parent
00ff0a43a7
commit
ebcbb29a0f
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user