Files
co-lite/local/whatsapp-mock/server.js
T
ngqileandClaude Opus 5.5 3ac3e108ff feat: WhatsApp service skeleton, settings, gateway route and mock
Adds solvway-services-whatsapp with per-company WhatsApp settings
(secrets masked), the gateway route /whatsapp/**, compose entries for
the service and a local whatsapp-mock, the example env keys, and the
service in CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 11:03:56 +08:00

12 lines
454 B
JavaScript

// Local stand-in for the WhatsApp Cloud (Graph) API. Later tasks add Graph endpoints and signed webhooks.
const http = require('node:http');
http.createServer((req, res) => {
if (req.method === 'GET' && req.url === '/health') {
res.writeHead(200, { 'Content-Type': 'application/json' });
return res.end('{"status":"UP"}');
}
res.writeHead(404, { 'Content-Type': 'application/json' });
res.end('{"error":"not found"}');
}).listen(8080);