mirror of https://github.com/Xhofe/alist
				
				
				
			feat: ping api (close #3752)
							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…
	
		Reference in New Issue
	
	 Andy Hsu
						Andy Hsu