b943b74f by astaxie

beego:init GlobalDocApi

1 parent 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 == "" {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!