1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-13 16:41:01 +00:00

Changes to handle multi filters on execution pt

This commit is contained in:
Bill Davis
2014-10-07 16:35:30 -04:00
parent aae89576c6
commit b6f789c497
4 changed files with 211 additions and 8 deletions

View File

@ -17,9 +17,10 @@ package beego
// FilterRouter defines filter operation before controller handler execution.
// it can match patterned url and do filter function when action arrives.
type FilterRouter struct {
filterFunc FilterFunc
tree *Tree
pattern string
filterFunc FilterFunc
tree *Tree
pattern string
returnOnOutput bool
}
// ValidRouter check current request is valid for this filter.