mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 18:53:37 +00:00
5d16441e1e
- Add test-webhook.js server for receiving webhook notifications - Add webhook-integration-test.js for comprehensive webhook testing - Verify webhook payload format and Discord/Slack compatibility - Test alert system integration with webhook notifications 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
590 B
JavaScript
19 lines
590 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const port = 3001;
|
|
|
|
app.use(express.json());
|
|
|
|
app.post('/webhook', (req, res) => {
|
|
console.log('=== WEBHOOK RECEIVED ===');
|
|
console.log('Headers:', req.headers);
|
|
console.log('Body:', JSON.stringify(req.body, null, 2));
|
|
console.log('========================');
|
|
|
|
res.status(200).json({ received: true });
|
|
});
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Test webhook server running at http://localhost:${port}/webhook`);
|
|
console.log('Configure Pulse to send webhooks to: http://localhost:3001/webhook');
|
|
}); |