mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 11:20:56 +00:00
Update router.go
To append a slice's value into "exceptMethod", for controller's methods shouldn't reflect to AutoRouter
This commit is contained in:
parent
5583fa2054
commit
43c977ab62
@ -44,6 +44,11 @@ var (
|
|||||||
"GetControllerAndAction"}
|
"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 {
|
type controllerInfo struct {
|
||||||
pattern string
|
pattern string
|
||||||
regex *regexp.Regexp
|
regex *regexp.Regexp
|
||||||
|
Loading…
Reference in New Issue
Block a user