1、修改路由

This commit is contained in:
wangjian 2023-01-06 18:12:43 +08:00
parent deaccf048d
commit b39b526536
1 changed files with 1 additions and 1 deletions

View File

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