Test Datei entfernt
This commit is contained in:
11
services/api/updateLocationInDatabase.js
Normal file
11
services/api/updateLocationInDatabase.js
Normal file
@@ -0,0 +1,11 @@
|
||||
export const updateLocationInDatabase = async (id, newLatitude, newLongitude) => {
|
||||
const response = await fetch("/api/talas_v5_DB/pois/updateLocation", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify({ id, latitude: newLatitude, longitude: newLongitude }),
|
||||
});
|
||||
|
||||
if (!response.ok) {
|
||||
console.error("Fehler beim Aktualisieren der Position");
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user