We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
middleware.Auth()函数缺少参数,我刚刚clone这个项目,看到修改是两天前,请问下这是的传参应该是什么呀
The text was updated successfully, but these errors were encountered:
新增了可以过滤不需要验证的路由路径参数 apiV1.Use(middleware.Auth([]string{})),已修复,可以再拉下试试
apiV1.Use(middleware.Auth([]string{}))
可能传参方式不太优雅,后面抽空再完善下。
Sorry, something went wrong.
已优化,Auth() 可以继续保持不许用传递参数。 如果部分路由不需要认证,可以在此过滤,例如: Auth("/login", "/register") @Huzh6
Auth()
Auth("/login", "/register")
No branches or pull requests
middleware.Auth()函数缺少参数,我刚刚clone这个项目,看到修改是两天前,请问下这是的传参应该是什么呀
The text was updated successfully, but these errors were encountered: