mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 14:40:57 +00:00
fix type
This commit is contained in:
parent
e09e642a83
commit
7b405e9af7
@ -268,7 +268,7 @@ func buildFilter(pattern string, filter FilterFunc) *FilterRouter {
|
||||
func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc) {
|
||||
mr := buildFilter(pattern, filter)
|
||||
switch action {
|
||||
case "BeforRouter":
|
||||
case "BeforeRouter":
|
||||
p.filters[BeforeRouter] = append(p.filters[BeforeRouter], mr)
|
||||
case "AfterStatic":
|
||||
p.filters[AfterStatic] = append(p.filters[AfterStatic], mr)
|
||||
|
Loading…
Reference in New Issue
Block a user