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

你好,关于重写路由后默认路由仍然有效的问题 #550

Open
lushaoming opened this issue Jul 31, 2021 · 1 comment
Open

你好,关于重写路由后默认路由仍然有效的问题 #550

lushaoming opened this issue Jul 31, 2021 · 1 comment

Comments

@lushaoming
Copy link

我现在想用\Yaf\Route\Regex重写路由问题,而不想使用默认的路由。
我配置了路由规则为user/([0-9]+),访问/user/1的时候是正确的,但是我访问/user/getList的时候仍然可以访问,我想让/user/getList无法访问,应该怎么做?

@snwf
Copy link

snwf commented Jul 7, 2022

改下源码吧, 注释几行就行了.

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

No branches or pull requests

2 participants