diff --git a/frontend/src/pages/EnvironmentDashboard.tsx b/frontend/src/pages/EnvironmentDashboard.tsx index 0dfa452..59a0f3b 100644 --- a/frontend/src/pages/EnvironmentDashboard.tsx +++ b/frontend/src/pages/EnvironmentDashboard.tsx @@ -94,19 +94,19 @@ export default function EnvironmentDashboard() { try { // Load internal sensors and dashboard const [dashRes, sensorsRes] = await Promise.all([ - api.get('/api/environment/dashboard', { params: { roomId: selectedRoom || undefined } }), - api.get('/api/environment/sensors', { params: { roomId: selectedRoom || undefined } }) + api.get('/environment/dashboard', { params: { roomId: selectedRoom || undefined } }), + api.get('/environment/sensors', { params: { roomId: selectedRoom || undefined } }) ]); setDashboard(dashRes.data); setSensors(sensorsRes.data); // Try to load Pulse data try { - const pulseStatusRes = await api.get('/api/pulse/status'); + const pulseStatusRes = await api.get('/pulse/status'); setPulseConnected(pulseStatusRes.data.connected); if (pulseStatusRes.data.connected) { - const pulseReadingsRes = await api.get('/api/pulse/readings'); + const pulseReadingsRes = await api.get('/pulse/readings'); setPulseReadings(pulseReadingsRes.data.readings || []); } } catch (pulseError) { diff --git a/frontend/src/pages/PulseTestPage.tsx b/frontend/src/pages/PulseTestPage.tsx index 2884f31..562564f 100644 --- a/frontend/src/pages/PulseTestPage.tsx +++ b/frontend/src/pages/PulseTestPage.tsx @@ -44,16 +44,16 @@ export default function PulseTestPage() { try { // Fetch status - const statusRes = await api.get('/api/pulse/status'); + const statusRes = await api.get('/pulse/status'); setStatus(statusRes.data); if (statusRes.data.connected) { // Fetch devices - const devicesRes = await api.get('/api/pulse/devices'); + const devicesRes = await api.get('/pulse/devices'); setDevices(devicesRes.data.devices || []); // Fetch readings - const readingsRes = await api.get('/api/pulse/readings'); + const readingsRes = await api.get('/pulse/readings'); setReadings(readingsRes.data.readings || []); }