Umbau CORS auf "domain"/api/job

This commit is contained in:
Daniel Nagel 2025-09-24 10:06:17 +02:00
parent 3e5c8d26a8
commit 82700c4689

View File

@ -1,12 +1,14 @@
GetMarkerData();
const cors = require('cors')
app.get('pai')
let freight;
async function GetMarkerData() {
try {
// holt Daten vom Gateway → das reicht die Worker-Antwort direkt durch
const res = await fetch("https://datagateway.danielnagel.at/api/job", {
const res = await fetch("https://map.arenos.danielnagel.at/api/job", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({