refactoring

This commit is contained in:
ISA
2025-05-26 09:05:31 +02:00
parent 1a37aa7a3a
commit 34f460902e
17 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,16 @@
// /services/database/updatePoiService.js
export const updatePoiService = async (poi) => {
const response = await fetch("/api/talas_v5_DB/pois/updatePoi", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(poi),
});
if (!response.ok) {
const error = await response.json();
throw new Error(error.error || "Fehler beim Aktualisieren des POI.");
}
};