diff --git a/src/utils.js b/src/utils.js index 3fd46f7..8921faa 100644 --- a/src/utils.js +++ b/src/utils.js @@ -18,22 +18,23 @@ if (window.location.hostname === "localhost" && window.location.port === "") { apiAddress = "http://localhost/api/v1"; staticContentAddress = "http://localhost/api/"; wsAddress = "ws://localhost/ws"; - logApiAddress = "http://localhost/logtest"; // TODO: change to log api address + logApiAddress = "http://localhost/lm/v1/log"; } else if (window.location.hostname === "localhost") { // programming on localhost apiAddress = "http://localhost:50050/v1"; staticContentAddress = "http://localhost:50050/"; wsAddress = "ws://localhost:50050/ws"; logApiAddress = "http://127.0.0.1:50110/v1/log"; -} else if (window.location.hostname === "192.168.178.93") { + /*} else if (window.location.hostname === "192.168.178.93") { apiAddress = "http://192.168.178.93:50050/v1"; staticContentAddress = "http://192.168.178.93:50050/"; - wsAddress = "ws://192.168.168.93:50050/ws"; + wsAddress = "ws://192.168.168.93:50050/ws"; */ } else { // production apiAddress = `${window.location.protocol}//${window.location.hostname}/api/v1`; staticContentAddress = `${window.location.protocol}//${window.location.hostname}/api/`; wsAddress = `${wssProtocol}${window.location.hostname}/ws`; + logApiAddress = `${wssProtocol}${window.location.hostname}/lm/v1/log`; } export const Constants = {