From 41ac67f13587ff76631167d6050c3f27f7b97c2a Mon Sep 17 00:00:00 2001 From: liuxiaolong <736321739@qq.com> Date: 星期二, 15 十月 2019 18:55:21 +0800 Subject: [PATCH] rm no use config --- middlewares/auth/auth.go | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/middlewares/auth/auth.go b/middlewares/auth/auth.go index 449ae51..fe7fe5f 100644 --- a/middlewares/auth/auth.go +++ b/middlewares/auth/auth.go @@ -28,6 +28,7 @@ func AuthHandler() gin.HandlerFunc { return func(c *gin.Context) { urlPath := c.Request.URL.Path + if strings.Contains(urlPath,"/data/api-v") && !strings.Contains(urlPath,"login"){ jwtDriver :=NewJwtAuthDriver() if !jwtDriver.Check(c) { -- Gitblit v1.8.0