diff --git a/src/api_client.py b/src/api_client.py index ecb063d..6e31e2f 100644 --- a/src/api_client.py +++ b/src/api_client.py @@ -4,7 +4,7 @@ import httpx from credentials import get_api_key -API_URL = os.getenv("NOTIFIER_URL", "https://notifier.gansejunge.com/internal/pull-notifications") +API_URL = os.getenv("NOTIFIER_URL", "https://notifier.gansejunge.com/internal/backend-pull-notifications/notifications/pull") # Longer than the backend's own timeouts: if the app gives up while the backend is # still draining the queue, those (already acked) messages are lost. @@ -35,7 +35,7 @@ def fetch_notifications() -> dict: headers = {"X-API-Key": api_key} try: - response = httpx.get(API_URL, headers=headers, timeout=TIMEOUT) + response = httpx.post(API_URL, headers=headers, timeout=TIMEOUT) response.raise_for_status() payload = response.json() except httpx.HTTPStatusError as e: