feat: add BAP webhook configuration and testing routes to server API

This commit is contained in:
Michael committed 2026-04-29 12:11:16 +02:00
1 parent 79cd5d4f61
commit 3cdd76e223
2 files changed
+12 -3

No files matched your search

+10 -2
View File
@@ -911,8 +911,16 @@ export async function registerRoutes(app: Express): Promise<Server> {
});
if (!response.ok) {
console.error('❌ INVOICE PROXY: Webhook error', response.status);
return res.status(500).json({ error: `Webhook error: ${response.status}` });
const errorBody = await response.text().catch(() => 'No body');
console.error('❌ INVOICE PROXY: Webhook error', {
status: response.status,
statusText: response.statusText,
body: errorBody
});
return res.status(500).json({
error: `Webhook error: ${response.status}`,
details: errorBody
});
}
console.log('✅ INVOICE PROXY: Success');