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

beego:init GlobalDocApi

This commit is contained in:
astaxie
2014-06-18 11:09:47 +08:00
parent 67be7b532d
commit b943b74fc5
2 changed files with 4 additions and 6 deletions

View File

@ -376,6 +376,10 @@ func initBeforeHttpRun() {
}
}
if EnableDocs {
GlobalDocApi = make(map[string]interface{})
}
middleware.VERSION = VERSION
middleware.AppName = AppName
middleware.RegisterErrorHandler()