n8n Data Gateway

This commit is contained in:
Daniel Nagel 2025-10-14 15:41:39 +02:00
parent 3cc7dbe797
commit 1ac73eda82
2 changed files with 14 additions and 1 deletions

View File

@ -181,5 +181,6 @@ if (hash.length >= 2) {
</script> </script>
<script src="markers.js"></script> <script src="markers.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
</body> </body>
</html> </html>

View File

@ -1,15 +1,27 @@
GetMarkerData(); GetMarkerData();
const Data_api = "/api/webhook/data";
let freight =null; let freight =null;
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 {
const res = await axios.post(Data_api, ReqData);
console.log("Antwort n8n:" + res.data);
} catch (err) {
console.error (err);
}
} }
function PlaceMarkers(data){ function RenderMarkers(data){
console.log(data); console.log(data);
} }