5d392b76 by astaxie

Merge pull request #531 from unphp/develop

Update router.go
2 parents c6a34b8e 43c977ab
...@@ -44,6 +44,11 @@ var ( ...@@ -44,6 +44,11 @@ var (
44 "GetControllerAndAction"} 44 "GetControllerAndAction"}
45 ) 45 )
46 46
47 // To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
48 func ExceptMethodAppend(action string) {
49 exceptMethod = append(exceptMethod, action)
50 }
51
47 type controllerInfo struct { 52 type controllerInfo struct {
48 pattern string 53 pattern string
49 regex *regexp.Regexp 54 regex *regexp.Regexp
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!