feat: API-Endpunkte für Bereichs-Updates implementiert

- Neuer Endpunkt `updateBereich.js` für die Aktualisierung von Bereichskoordinaten per PUT-Request.
- Utility-Funktion `updateBereichUtil.js` hinzugefügt, um API-Aufrufe für Bereichs-Updates im Frontend zu kapseln.
- Fehler bei der URL in `updateBereichUtil.js` behoben, um sicherzustellen, dass die Koordinaten korrekt aktualisiert werden.
- Verbesserte Fehlerbehandlung und Logging zur Debug-Unterstützung.
This commit is contained in:
ISA
2024-12-21 05:49:43 +01:00
parent a82a92e89a
commit 35a6d4120b
2 changed files with 19 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
export const updateLocation = async (idLocation, idMap, newCoords) => {
try {
const response = await fetch("/api/updateBereich", {
const response = await fetch("/api/talas_v5_DB/bereich/updateBereich", {
method: "PUT",
headers: {
"Content-Type": "application/json",