Updated url and method
This commit is contained in:
1 parent
2ce845c51d
commit
0b87afbe8b
1 file changed
+2
-2
+2
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user