mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-06 05:51:19 +08:00
Change health check endpoint to accept any HTTP method for improved flexibility.
This commit is contained in:
@@ -57,7 +57,7 @@ func corsMiddleware() gin.HandlerFunc {
|
||||
// setupRoutes 设置路由
|
||||
func (s *Server) setupRoutes() {
|
||||
// 健康检查
|
||||
s.router.GET("/health", s.handleHealth)
|
||||
s.router.Any("/health", s.handleHealth)
|
||||
|
||||
// API路由组
|
||||
api := s.router.Group("/api")
|
||||
|
||||
Reference in New Issue
Block a user