Update webhook to use GET request and add file details

Correct the HTTP method for the webhook request to GET and include additional file-related headers in server/routes.ts. Also, reorders integrations in .replit for clarity.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: cfbfe47c-0c9a-4ebf-8a41-2937407eccff
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/cfbfe47c-0c9a-4ebf-8a41-2937407eccff/7RlGXpp
This commit is contained in:
michaelschal committed 2025-09-03 12:52:42 +00:00
1 parent f9198a0665
commit 7a37fcacbd
4 files changed
+212 -5

No files matched your search

+7 -4
View File
@@ -149,14 +149,17 @@ export async function registerRoutes(app: Express): Promise<Server> {
const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 60000); // 60 secondes
console.log('🌐 BAP: Envoi vers webhook n8n...');
console.log('🌐 BAP: Envoi vers webhook n8n (GET)...');
const response = await fetch(webhookUrl, {
method: 'POST',
method: 'GET',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'X-PDF-Base64': pdfBase64,
'X-Recipient': recipient,
'X-FileName': fileName,
'X-FileSize': fileBuffer.length.toString()
},
body: JSON.stringify(webhookPayload),
signal: controller.signal
});