- updatePolylineCoordinatesThunk in markerUtils.js und poiUtils.js eingebunden - zentrale Hilfsfunktion savePolylineRedux erstellt - fetch() entfernt, Version auf 1.1.183 erhöht
13 lines
391 B
JavaScript
13 lines
391 B
JavaScript
// /services/database/locationDevice/fetchLocationDevicesService.js
|
|
|
|
export const fetchLocationDevicesService = async () => {
|
|
const response = await fetch("/api/talas_v5_DB/locationDevice/locationDevices");
|
|
|
|
if (!response.ok) {
|
|
const error = await response.json();
|
|
throw new Error(error.message || "Fehler beim Abrufen der Gerätedaten");
|
|
}
|
|
|
|
return await response.json();
|
|
};
|