Compare commits
No commits in common. "6e376b4f1307448f470fe03738be744340f900fe" and "8697d32d7b52785b1968c17f825f250395da05f6" have entirely different histories.
6e376b4f13
...
8697d32d7b
17
markers.js
17
markers.js
|
|
@ -1,13 +1,4 @@
|
||||||
// markers.js
|
fetch('/api/places')
|
||||||
async function testGateway() {
|
.then(r => r.json())
|
||||||
try {
|
.then(data => console.log('Gateway-Antwort:', data))
|
||||||
const res = await fetch("/api/places"); // Edge-Caddy proxyt zu data_gateway
|
.catch(err => console.error('Fehler:', err));
|
||||||
const data = await res.json();
|
|
||||||
console.log("Antwort vom Gateway:", data);
|
|
||||||
} catch (err) {
|
|
||||||
console.error("Fehler:", err);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Direkt beim Laden einmal ausführen:
|
|
||||||
testGateway();
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user