mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
feat: add BAP webhook configuration and testing routes to server API
This commit is contained in:
1 parent
79cd5d4f61
commit
3cdd76e223
2 files changed
+12
-3
No files matched your search
+10
-2
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user