From 4121c03544e01cd5bcc48e2f9aa558e68cc791c8 Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 20 Jun 2014 13:24:00 +0800 Subject: [PATCH] update the remote url --- g_docs.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/g_docs.go b/g_docs.go index b5d6c61..73d825d 100644 --- a/g_docs.go +++ b/g_docs.go @@ -64,11 +64,7 @@ func init() { a.Path = urlReplace(k + a.Path) v.Apis[i] = a } - if beego.HttpAddr != "" { - v.BasePath = beego.HttpAddr + ":" + strconv.Itoa(beego.HttpPort) + basepath - } else { - v.BasePath = "http://127.0.0.1:" + strconv.Itoa(beego.HttpPort) + basepath - } + v.BasePath = basepath beego.GlobalDocApi[strings.Trim(k, "/")] = v } }