diff --git a/.replit b/.replit index 2e1a3ae..baa3edd 100644 --- a/.replit +++ b/.replit @@ -37,4 +37,4 @@ args = "npm run dev" waitForPort = 5000 [agent] -integrations = ["javascript_object_storage==1.0.0", "javascript_database==1.0.0", "javascript_log_in_with_replit==1.0.0"] +integrations = ["javascript_object_storage==1.0.0", "javascript_log_in_with_replit==1.0.0", "javascript_database==1.0.0"] diff --git a/attached_assets/{6ED84FEA-F21E-4F31-AD91-D25613CAD17A}_1756904384640.png b/attached_assets/{6ED84FEA-F21E-4F31-AD91-D25613CAD17A}_1756904384640.png new file mode 100644 index 0000000..998f298 Binary files /dev/null and b/attached_assets/{6ED84FEA-F21E-4F31-AD91-D25613CAD17A}_1756904384640.png differ diff --git a/server/routes.ts b/server/routes.ts index 1c3ace2..57a1321 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -149,17 +149,14 @@ export async function registerRoutes(app: Express): Promise { const controller = new AbortController(); const timeoutId = setTimeout(() => controller.abort(), 60000); // 60 secondes - console.log('🌐 BAP: Envoi vers webhook n8n (GET)...'); + console.log('🌐 BAP: Envoi vers webhook n8n (POST avec body JSON)...'); const response = await fetch(webhookUrl, { - method: 'GET', + method: 'POST', headers: { - 'Content-Type': 'application/json', - 'X-PDF-Base64': pdfBase64, - 'X-Recipient': recipient, - 'X-FileName': fileName, - 'X-FileSize': fileBuffer.length.toString() + 'Content-Type': 'application/json' }, + body: JSON.stringify(webhookPayload), signal: controller.signal });