Commit 720a77c1 authored by astaxie's avatar astaxie

beego:rever docs

parent b943b74f
......@@ -376,10 +376,6 @@ func initBeforeHttpRun() {
}
}
if EnableDocs {
GlobalDocApi = make(map[string]interface{})
}
middleware.VERSION = VERSION
middleware.AppName = AppName
middleware.RegisterErrorHandler()
......
......@@ -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 == "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment