diff --git a/src/utils.js b/src/utils.js index 85b58c6..657b7d5 100644 --- a/src/utils.js +++ b/src/utils.js @@ -8,7 +8,7 @@ import { v4 as uuidv4 } from "uuid"; /** * constants */ -const wssProtocol = window.location.protocol === "https:" ? "wss://" : "ws://"; +//const wssProtocol = window.location.protocol === "https:" ? "wss://" : "ws://"; export const Constants = { COLORS: { @@ -17,14 +17,14 @@ export const Constants = { ICON_INFO: "#08c", }, TEXT_EMPTY_PLACEHOLDER: "-/-", - //API_ADDRESS: "http://localhost:8080/v1", - //STATIC_CONTENT_ADDRESS: "http://localhost:8080/", - //WS_ADDRESS: "ws://localhost:8080/ws", - API_ADDRESS: + API_ADDRESS: "http://localhost:8080/v1", + STATIC_CONTENT_ADDRESS: "http://localhost:8080/", + WS_ADDRESS: "ws://localhost:8080/ws", + /*API_ADDRESS: window.location.protocol + "//" + window.location.hostname + "/api/v1", STATIC_CONTENT_ADDRESS: window.location.protocol + "//" + window.location.hostname + "/api/", - WS_ADDRESS: `${wssProtocol}${window.location.hostname}/ws`, + WS_ADDRESS: `${wssProtocol}${window.location.hostname}/ws`,*/ ROUTE_PATHS: { GROUP_TASKS: "/group-tasks", GROUP_TASKS_VIEW: "/group-tasks/",