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

@@ -25,7 +25,7 @@ const DeviceFirmwareModal = ({
};
axiosInstance
.get(`${endpoints.ucentralfms}/api/v1/firmwares?deviceType=${device.compatible}`, {
.get(`${endpoints.owfms}/api/v1/firmwares?deviceType=${device.compatible}`, {
headers,
})
.then((response) => {
@@ -60,7 +60,7 @@ const DeviceFirmwareModal = ({
};
axiosInstance
.post(`${endpoints.ucentralgw}/api/v1/device/${device.serialNumber}/upgrade`, parameters, {
.post(`${endpoints.owgw}/api/v1/device/${device.serialNumber}/upgrade`, parameters, {
headers,
})
.then((response) => {