kobe6258 hace 7 meses
padre
commit
84a2875c56
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      routers/router.go

+ 1 - 1
routers/router.go

@@ -20,7 +20,7 @@ func init() {
 	}))
 	//增加授权拦截
 
-	//web.InsertFilter("*", web.BeforeRouter, middleware.AuthMiddleware())
+	web.InsertFilter("*", web.BeforeRouter, middleware.AuthMiddleware())
 
 	ns := web.NewNamespace("/htapi",
 		web.NSNamespace("/user",