Change health check endpoint to accept any HTTP method for improved flexibility.

This commit is contained in:
yiplee
2025-10-30 13:00:17 +08:00
parent b3fb73c4a0
commit fd0cf4abb2

View File

@@ -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")