feat: Dynamische Hostname- und Portunterstützung für API-Aufrufe implementiert
- Hostname dynamisch aus `window.location.hostname` extrahiert - Port 3000 explizit in der URL ergänzt - Fehler beim Parsen von JSON behoben (404-HTML-Antwort statt JSON) - Verbesserte Fehlerprotokollierung und Debugging-Logs in `useBereicheMarkersLayer.js` - Tooltip-Anzeige für Bereich und Standort optimiert
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// /pages/api/talas_v5_DB/bereich/readBereich.js
|
||||
import getPool from "../../../../utils/mysqlPool"; // Singleton-Pool importieren
|
||||
|
||||
export default async function handler(req, res) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// /pages/api/talas_v5_DB/bereich/updateBereich.js
|
||||
import getPool from "../../../utils/mysqlPool"; // Singleton-Pool importieren
|
||||
|
||||
export default async function handler(req, res) {
|
||||
|
||||
Reference in New Issue
Block a user