Merge pull request #45 from yiplee/main

Change health check endpoint to accept any HTTP method for improved f…
This commit is contained in:
tinkle-community
2025-10-30 13:15:22 +08:00
committed by GitHub
+1 -1
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")