refactor and cleanup

This commit is contained in:
ISA
2025-05-23 08:36:38 +02:00
parent 41e270cc53
commit 8cb995040d
16 changed files with 88 additions and 92 deletions

View File

@@ -0,0 +1,14 @@
// /services/database/addPoiService.js
export const addPoiService = async (formData) => {
const response = await fetch("/api/talas_v5_DB/pois/addLocation", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(formData),
});
if (!response.ok) {
throw new Error("Fehler beim Hinzufügen des POI");
}
return await response.json();
};