From 0b87afbe8b36e1e87d221e9fbd07870d06248409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20G=C3=A4nsejunge?= Date: Fri, 6 Nov 2026 11:49:28 +0100 Subject: [PATCH] Updated url and method --- src/api_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: