43c977ab by unphp

Update router.go

To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
1 parent 5583fa20
......@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!