grist api

This commit is contained in:
Daniel Nagel 2025-12-28 12:57:58 +00:00
parent 4b0d8e0254
commit 7c8b948676

View File

@ -1,14 +1,15 @@
let Data_api = "/webhook/data"; let Data_api = "/api/02c46aae-0b7a-41e6-99da-8d69d3f3e889";
let freight = null; let freight = null;
let testing = true; let testing = false;
let ReqData = { Places: "Stadte"} let ReqData = ["Stadte", "Dorfer", "Wichtiges"];
// 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() {
api = testing ? Test_api : Data_api;
try { try {
const res = await axios.post(Data_api, ReqData); const res = await axios.post(api, ReqData);
console.log (res.data); console.log (res.data);
RenderMarkers(res.data); RenderMarkers(res.data);