1
0

Modified Frontend for it to use new endpoints

This commit is contained in:
Jose
2025-03-16 04:49:23 +01:00
parent 92ca2e4c0a
commit b6ecccdf00
8 changed files with 33 additions and 31 deletions

View File

@@ -40,7 +40,7 @@ const SummaryCards = ({ deviceId }) => {
if (configError) return <p>Error al cargar configuración: {configError}</p>;
if (!config) return <p>Configuración no disponible.</p>;
const BASE = config.appConfig.endpoints.BASE_URL;
const BASE = config.appConfig.endpoints.LOGIC_URL;
const ENDPOINT = config.appConfig.endpoints.GET_DEVICE_LATEST_VALUES;
const endp = ENDPOINT.replace('{0}', deviceId);