This commit is contained in:
mr 2024-10-02 15:38:36 +02:00
parent 89dbe77844
commit 922799cbd4

View File

@ -34,7 +34,8 @@ func (o *StatusController) Status() {
var address map[string]string
json.Unmarshal(o.Ctx.Input.CopyBody(10000), &address)
if len(address) == 0 { // default if nothing is send in body
for _, host := range []string{"oc-datacenter", "oc-workflow", "oc-workspace", "oc-shared", "oc-workspace"} {
for _, host := range []string{tools.DATACENTERAPI, tools.WORKFLOWAPI, tools.WORKSPACEAPI,
tools.SHAREDAPI, tools.CATALOGAPI, tools.PEERSAPI} {
address[host] = "http://" + host + ":8080/oc"
}
}