1
0
mirror of https://github.com/astaxie/beego.git synced 2025-07-12 00:01:02 +00:00

beego:AST code

This commit is contained in:
astaxie
2014-06-09 17:33:04 +08:00
parent 6c8a7f1382
commit 21cb8ea4a3
3 changed files with 116 additions and 27 deletions

View File

@ -34,8 +34,8 @@ const (
var (
// custom error when user stop request handler manually.
USERSTOPRUN = errors.New("User stop run")
GlobalControllerRouter map[string]*ControllerComments //pkgpath+controller:comments
USERSTOPRUN = errors.New("User stop run")
GlobalControllerRouter map[string][]ControllerComments = make(map[string][]ControllerComments) //pkgpath+controller:comments
)
// store the comment for the controller method
@ -43,6 +43,7 @@ type ControllerComments struct {
method string
router string
allowHTTPMethods []string
params []map[string]string
}
// Controller defines some basic http request handler operations, such as