提交 b943b74f 编写于 作者: A astaxie

beego:init GlobalDocApi

上级 67be7b53
......@@ -376,6 +376,10 @@ func initBeforeHttpRun() {
}
}
if EnableDocs {
GlobalDocApi = make(map[string]interface{})
}
middleware.VERSION = VERSION
middleware.AppName = AppName
middleware.RegisterErrorHandler()
......
......@@ -8,12 +8,6 @@ import (
var GlobalDocApi map[string]interface{}
func init() {
if EnableDocs {
GlobalDocApi = make(map[string]interface{})
}
}
func serverDocs(ctx *context.Context) {
var obj interface{}
if splat := ctx.Input.Param(":splat"); splat == "" {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册