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

@@ -57,10 +57,7 @@ const DeviceConfiguration = () => {
};
axiosInstance
.get(
`${endpoints.ucentralgw}/api/v1/device/${encodeURIComponent(deviceSerialNumber)}`,
options,
)
.get(`${endpoints.owgw}/api/v1/device/${encodeURIComponent(deviceSerialNumber)}`, options)
.then((response) => {
setDevice(response.data);
})
@@ -82,7 +79,7 @@ const DeviceConfiguration = () => {
axiosInstance
.put(
`${endpoints.ucentralgw}/api/v1/device/${encodeURIComponent(deviceSerialNumber)}`,
`${endpoints.owgw}/api/v1/device/${encodeURIComponent(deviceSerialNumber)}`,
parameters,
{ headers },
)