1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-23 04:00:50 +00:00

Merge pull request #531 from unphp/develop

Update router.go
This commit is contained in:
astaxie 2014-03-14 10:08:47 +08:00
commit 5d392b76c7

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