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

@@ -74,7 +74,7 @@ const DeviceActions = () => {
axiosInstance
.get(
`${endpoints.ucentralgw}/api/v1/device/${encodeURIComponent(deviceSerialNumber)}/rtty`,
`${endpoints.owgw}/api/v1/device/${encodeURIComponent(deviceSerialNumber)}/rtty`,
options,
)
.then((response) => {
@@ -97,7 +97,7 @@ const DeviceActions = () => {
};
axiosInstance
.get(`${endpoints.ucentralgw}/api/v1/device/${deviceSerialNumber}`, options)
.get(`${endpoints.owgw}/api/v1/device/${deviceSerialNumber}`, options)
.then((response) => {
setDevice(response.data);
})