feat: API-Proxy für GisStationsStatusDistrict hinzugefügt

- Unterstützung für Parameter 'm' (idMap) und 'u' (idUser) zum Abrufen von Statusdaten.
- Dynamische URL-Ermittlung basierend auf Anfrage-Headern (Protokoll, Host).
- Parameter-Validierung mit Fehlerhinweis, falls Werte fehlen.
- Fehlerbehandlung und Debugging-Logs hinzugefügt.
- XML-Daten vom Webservice werden direkt an den Client weitergeleitet.
This commit is contained in:
ISA
2025-01-03 06:39:31 +01:00
parent 4bd3d4da4d
commit 3b8e2b11ce
2 changed files with 68 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
// pages/api/gisStationsStaticDistrict.js // Proxy für GisStationsStaticDistrict
export default async function handler(req, res) {
// CORS-Header setzen
res.setHeader("Access-Control-Allow-Credentials", true);