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
12 lines
454 B
JavaScript
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);
|