mirror of
https://github.com/astaxie/beego.git
synced 2025-06-23 16:10:19 +00:00
beego:init GlobalDocApi
This commit is contained in:
4
beego.go
4
beego.go
@ -376,6 +376,10 @@ func initBeforeHttpRun() {
|
||||
}
|
||||
}
|
||||
|
||||
if EnableDocs {
|
||||
GlobalDocApi = make(map[string]interface{})
|
||||
}
|
||||
|
||||
middleware.VERSION = VERSION
|
||||
middleware.AppName = AppName
|
||||
middleware.RegisterErrorHandler()
|
||||
|
Reference in New Issue
Block a user