markers test

This commit is contained in:
Daniel Nagel 2025-09-07 13:02:12 +00:00
parent 8e936c3fb8
commit 3c94a65913

View File

@ -1,4 +1,13 @@
fetch('/api/places')
.then(r => r.json())
.then(data => console.log('Gateway-Antwort:', data))
.catch(err => console.error('Fehler:', err));
// markers.js
async function testGateway() {
try {
const res = await fetch("/api/places"); // Edge-Caddy proxyt zu data_gateway
const data = await res.json();
console.log("Antwort vom Gateway:", data);
} catch (err) {
console.error("Fehler:", err);
}
}
// Direkt beim Laden einmal ausführen:
testGateway();