This commit is contained in:
Daniel Nagel 2025-10-14 15:53:20 +02:00
parent d8aa1544e8
commit 0a84ef4614

View File

@ -1,16 +1,16 @@
GetMarkerData(); GetMarkerData();
const Data_api = "/api/webhook/data"; let Data_api = "/api/webhook/data";
let freight =null; let freight =null;
ReqData = { Places: "Stadte"} let ReqData = { Places: "Stadte"}
// Post to n8n Server to get Data from Grist in JSON format. // Post to n8n Server to get Data from Grist in JSON format.
async function GetMarkerData() { async function GetMarkerData() {
try { try {
const res = await axios.post(Data_api, ReqData); const res = await axios.post(Data_api, ReqData);
console.log("Antwort n8n:" + res.data); console.log("Antwort n8n:", res.data);
} catch (err) { } catch (err) {
console.error (err); console.error (err);