diff --git a/internal/middleware/jwt.go b/internal/middleware/jwt.go index 084c59d..6337914 100644 --- a/internal/middleware/jwt.go +++ b/internal/middleware/jwt.go @@ -70,7 +70,7 @@ func JwtAuthMiddleware(logger *zap.Logger) gin.HandlerFunc { ) token := c.GetHeader("Authorization") // 这里可以过滤不需要进行验证的接口 - if path == "/user/login" || path == "/health" { + if path == "/api/user/login" || path == "/api/health" { goto Return } if len(token) == 0 {