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,11 @@
// /services/database/deletePoiService.js
export const deletePoiService = async (id) => {
const response = await fetch(`/api/talas_v5_DB/pois/deletePoi?id=${id}`, {
method: "DELETE",
});
if (!response.ok) {
throw new Error("Fehler beim Löschen des POI.");
}
};