From fd0cf4abb29d0a728265b0f9230364403fe7901f Mon Sep 17 00:00:00 2001 From: yiplee Date: Thu, 30 Oct 2025 13:00:17 +0800 Subject: [PATCH] Change health check endpoint to accept any HTTP method for improved flexibility. --- api/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server.go b/api/server.go index 32d24c51..875aeae0 100644 --- a/api/server.go +++ b/api/server.go @@ -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")