Update router.go

To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
This commit is contained in:
unphp 2014-03-12 17:20:53 +08:00
parent 5583fa2054
commit 43c977ab62
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,11 @@ var (
"GetControllerAndAction"}
)
// To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
func ExceptMethodAppend(action string) {
exceptMethod = append(exceptMethod, action)
}
type controllerInfo struct {
pattern string
regex *regexp.Regexp