Compare commits
2 Commits
8697d32d7b
...
6e376b4f13
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e376b4f13 | |||
| 3c94a65913 |
17
markers.js
17
markers.js
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user