mirror of
				https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
				synced 2025-10-31 18:27:45 +00:00 
			
		
		
		
	Modified endpoints to match new naming convention
This commit is contained in:
		| @@ -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 }, | ||||
|       ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Charles
					Charles