Skip to content
New issue

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

希望鸟哥能增加一个配置用于控制是否开启默认路由. #576

Closed
snwf opened this issue Jul 7, 2022 · 1 comment
Closed
Labels

Comments

@snwf
Copy link

snwf commented Jul 7, 2022

做RBAC的时候可能导致两条不同的url指向同一个控制器的action, 出现权限纰漏, 实际上并不需要默认路由的情况.
谢谢!

@laruence
Copy link
Owner

你可以在自定义的路由器里,把所有你不想要的情况,路由到一个默认的页面,比如404. 最后返回true就行了。
自定义路由器返回true,就会阻止近一步调用默认路由器。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants