Updated url and method

This commit is contained in:
florian committed 2026-11-06 11:49:28 +01:00
1 parent 2ce845c51d
commit 0b87afbe8b
1 file changed
+2 -2
+2 -2
View File
@@ -4,7 +4,7 @@ import httpx
from credentials import get_api_key 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 # 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. # still draining the queue, those (already acked) messages are lost.
@@ -35,7 +35,7 @@ def fetch_notifications() -> dict:
headers = {"X-API-Key": api_key} headers = {"X-API-Key": api_key}
try: try:
response = httpx.get(API_URL, headers=headers, timeout=TIMEOUT) response = httpx.post(API_URL, headers=headers, timeout=TIMEOUT)
response.raise_for_status() response.raise_for_status()
payload = response.json() payload = response.json()
except httpx.HTTPStatusError as e: except httpx.HTTPStatusError as e: