jlj
This commit is contained in:
parent
0716ca3d9f
commit
8e936c3fb8
18
markers.js
18
markers.js
|
|
@ -1,14 +1,4 @@
|
||||||
// markers.js
|
fetch('/api/places')
|
||||||
async function testGateway() {
|
.then(r => r.json())
|
||||||
try {
|
.then(data => console.log('Gateway-Antwort:', data))
|
||||||
console.log ("test test");
|
.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