Fix API paths and param names
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kevin Alberts 2025-07-15 14:03:20 +02:00
parent b984352d92
commit 486cba9865

View file

@ -29,11 +29,10 @@ def ingest_request():
raise ValueError("Reitti API URL or Key is not configured!")
response1 = requests.post(
REITTI_BASE_URL,
'http://service1.com/api',
f"{REITTI_BASE_URL}/api/v1/ingest/owntracks",
json=data,
headers=request.headers,
params={'api_key': REITTI_API_KEY}
params={'token': REITTI_API_KEY}
)
except Exception as e:
@ -45,7 +44,7 @@ def ingest_request():
raise ValueError("Dawarich API URL or Key is not configured!")
response2 = requests.post(
DAWARICH_BASE_URL,
f"{DAWARICH_BASE_URL}/api/v1/owntracks/points",
json=data,
headers=request.headers,
params={'api_key': DAWARICH_API_KEY}