markers test
This commit is contained in:
parent
8e936c3fb8
commit
3c94a65913
17
markers.js
17
markers.js
|
|
@ -1,4 +1,13 @@
|
||||||
fetch('/api/places')
|
// markers.js
|
||||||
.then(r => r.json())
|
async function testGateway() {
|
||||||
.then(data => console.log('Gateway-Antwort:', data))
|
try {
|
||||||
.catch(err => console.error('Fehler:', err));
|
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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user