dev #3

Merged
Chefe merged 4 commits from dev into server 2025-09-07 14:58:35 +02:00
Showing only changes of commit 69ce35e03e - Show all commits

View File

@ -1,14 +1,13 @@
const url = "https://data.arenos.danielnagel.at/api/docs/rp78Zashtzfe7mgFSbeMkd"; // markers.js
const apiKey = "77fc2fdb0b54a27e4da954a077a670e67f45b203"; async function testGateway() {
try {
async function main() { const res = await fetch("/api/places"); // Edge-Caddy proxyt zu data_gateway
const response = await fetch(url, { const data = await res.json();
headers: { console.log("Antwort vom Gateway:", data);
"Authorization": `Bearer ${apiKey}` } catch (err) {
} console.error("Fehler:", err);
}); }
const json = await response.json();
console.log(json);
} }
main(); // Direkt beim Laden einmal ausführen:
testGateway();