Merge pull request #531 from unphp/develop
Update router.go
Showing
1 changed file
with
5 additions
and
0 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment