Modified endpoints to match new naming convention

This commit is contained in:
Charles
2021-09-01 09:02:20 -04:00
parent 1900a2cc1e
commit ac0398d8f3
40 changed files with 205 additions and 117 deletions

View File

@@ -80,7 +80,7 @@ const TraceModal = ({ show, toggleModal }) => {
axiosInstance
.post(
`${endpoints.ucentralgw}/api/v1/device/${encodeURIComponent(deviceSerialNumber)}/trace`,
`${endpoints.owgw}/api/v1/device/${encodeURIComponent(deviceSerialNumber)}/trace`,
parameters,
{ headers },
)
@@ -108,7 +108,7 @@ const TraceModal = ({ show, toggleModal }) => {
const isConnected = await getDeviceConnection(
deviceSerialNumber,
currentToken,
endpoints.ucentralgw,
endpoints.owgw,
);
setIsDeviceConnected(isConnected);
};