mirror of
https://github.com/laoxong/nofx.git
synced 2026-06-07 03:07:56 +08:00
Merge pull request #45 from yiplee/main
Change health check endpoint to accept any HTTP method for improved f…
This commit is contained in:
+1
-1
@@ -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