Commit 5d392b76 authored by astaxie's avatar astaxie

Merge pull request #531 from unphp/develop

Update router.go
parents c6a34b8e 43c977ab
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment