liuxiaolong
2019-10-15 41ac67f13587ff76631167d6050c3f27f7b97c2a
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) {