Test Datei entfernt

This commit is contained in:
ISA
2025-03-05 09:48:02 +01:00
parent e355fdc919
commit 3a21abd4bb
20 changed files with 12 additions and 396 deletions

View File

@@ -0,0 +1,16 @@
export const fetchPoiData = async (idPoi) => {
try {
const response = await fetch(`/api/talas_v5_DB/pois/getPoiById?idPoi=${idPoi}`);
if (!response.ok) throw new Error("Fehler beim Abrufen der POI-Daten");
const data = await response.json();
return {
idPoi,
name: data.name,
description: data.description,
idLD: data.idLD,
};
} catch (error) {
console.error("Fehler beim Abrufen der POI-Daten", error);
return null;
}
};