yaf icon indicating copy to clipboard operation
yaf copied to clipboard

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

Open lushaoming opened this issue 4 years ago • 1 comments

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

lushaoming avatar Jul 31 '21 04:07 lushaoming

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

snwf avatar Jul 07 '22 08:07 snwf