1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:50:54 +00:00

beego:rever docs

This commit is contained in:
astaxie 2014-06-18 11:15:43 +08:00
parent b943b74fc5
commit 720a77c1f9
2 changed files with 6 additions and 4 deletions

View File

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

View File

@ -8,6 +8,12 @@ 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 == "" {