1、修改路由
This commit is contained in:
parent
deaccf048d
commit
b39b526536
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue