mirror of
https://github.com/beego/bee.git
synced 2024-11-22 05:00:54 +00:00
update the remote url
This commit is contained in:
parent
89ae690fdd
commit
4121c03544
@ -64,11 +64,7 @@ func init() {
|
|||||||
a.Path = urlReplace(k + a.Path)
|
a.Path = urlReplace(k + a.Path)
|
||||||
v.Apis[i] = a
|
v.Apis[i] = a
|
||||||
}
|
}
|
||||||
if beego.HttpAddr != "" {
|
v.BasePath = basepath
|
||||||
v.BasePath = beego.HttpAddr + ":" + strconv.Itoa(beego.HttpPort) + basepath
|
|
||||||
} else {
|
|
||||||
v.BasePath = "http://127.0.0.1:" + strconv.Itoa(beego.HttpPort) + basepath
|
|
||||||
}
|
|
||||||
beego.GlobalDocApi[strings.Trim(k, "/")] = v
|
beego.GlobalDocApi[strings.Trim(k, "/")] = v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user