Files
pulse/test-webhook.js
T
courtmanr@gmail.com 890712dc5a test: add webhook functionality testing tools
- 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>
2025-06-02 17:58:35 +01:00

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');
});