From b39b526536196d6fae5897766bd888659d252b7e Mon Sep 17 00:00:00 2001 From: wangjian Date: Fri, 6 Jan 2023 18:12:43 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/middleware/jwt.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {