cleanup: alte GIS-Fetch-Dateien und unnötige Service-Imports entfernt – vollständige Umstellung auf zentrale Thunks abgeschlossen
This commit is contained in:
8
services/database/fetchLocationDevicesService.js
Normal file
8
services/database/fetchLocationDevicesService.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// /services/database/fetchLocationDevicesService.js
|
||||
export const fetchLocationDevicesService = async () => {
|
||||
const response = await fetch("/api/talas_v5_DB/locationDevice/locationDevices");
|
||||
if (!response.ok) {
|
||||
throw new Error("Geräteliste konnte nicht geladen werden");
|
||||
}
|
||||
return await response.json();
|
||||
};
|
||||
Reference in New Issue
Block a user