CB-3493 hostname api fix (#1672)

This commit is contained in:
Ainur
2023-05-18 14:51:04 +03:00
committed by GitHub
parent e1d61abd06
commit b1fa2c7a40
2 changed files with 7 additions and 0 deletions
@@ -114,6 +114,7 @@ type ServerConfig {
serverURL: String!
rootURI: String!
hostName: String! @deprecated # use container id instead
containerId: String!
defaultAuthRole: String
@@ -68,6 +68,12 @@ public class WebServerConfig {
return CommonUtils.notEmpty(application.getRootURI());
}
@Deprecated
@Property
public String getHostName() {
return getContainerId();
}
@Property
public String getContainerId() {
return CommonUtils.notEmpty(application.getContainerId());