mirror of
https://github.com/astaxie/beego.git
synced 2025-04-15 19:26:48 +00:00
miss filter *
This commit is contained in:
parent
a85d91b4bd
commit
95307a3d78
@ -15,6 +15,9 @@ func (mr *FilterRouter) ValidRouter(router string) bool {
|
|||||||
if mr.pattern == "" {
|
if mr.pattern == "" {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
if mr.pattern == "*" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
if router == mr.pattern {
|
if router == mr.pattern {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user