fix type
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -268,7 +268,7 @@ func buildFilter(pattern string, filter FilterFunc) *FilterRouter { | ... | @@ -268,7 +268,7 @@ func buildFilter(pattern string, filter FilterFunc) *FilterRouter { |
| 268 | func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc) { | 268 | func (p *ControllerRegistor) AddFilter(pattern, action string, filter FilterFunc) { |
| 269 | mr := buildFilter(pattern, filter) | 269 | mr := buildFilter(pattern, filter) |
| 270 | switch action { | 270 | switch action { |
| 271 | case "BeforRouter": | 271 | case "BeforeRouter": |
| 272 | p.filters[BeforeRouter] = append(p.filters[BeforeRouter], mr) | 272 | p.filters[BeforeRouter] = append(p.filters[BeforeRouter], mr) |
| 273 | case "AfterStatic": | 273 | case "AfterStatic": |
| 274 | p.filters[AfterStatic] = append(p.filters[AfterStatic], mr) | 274 | p.filters[AfterStatic] = append(p.filters[AfterStatic], mr) | ... | ... |
-
Please register or sign in to post a comment