Webhook Discord

This commit is contained in:
2026-07-02 18:38:04 +02:00
parent 34fe0b461e
commit 3505bc149d
10 changed files with 171 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ import { getAuthToken } from './userIdentityService';
import { mockBackendService } from './mockBackendService';
import { CareInfo, Language } from '../../types';
import { getConfiguredBackendRootUrl } from '../../utils/backendUrl';
import { getAppInfoHeaders } from '../../utils/appInfoHeaders';
const REQUEST_TIMEOUT_MS = 60000;
@@ -61,6 +62,7 @@ const makeRequest = async <T,>(
const headers: Record<string, string> = {
'Content-Type': 'application/json',
'Authorization': `Bearer ${options.token}`,
...getAppInfoHeaders(),
};
if (options.idempotencyKey) {
headers['Idempotency-Key'] = options.idempotencyKey;