Skip to content

Add a /health endpoint to the WhatsApp webhook server #1

Description

@vgpastor

Goal / Objetivo

EN: Add a lightweight GET /health endpoint to the WhatsApp webhook server so
uptime checks and the reverse proxy can verify the process is alive without
hitting the webhook path.

ES: Añadir un endpoint ligero GET /health al servidor de webhook de WhatsApp
para que los checks de uptime y el proxy inverso puedan comprobar que el proceso
está vivo sin tocar la ruta del webhook.

Where / Dónde

src/infrastructure/whatsapp/whatsapp-webhook-server.ts — add a route that
returns 200 { "status": "ok" }. Keep it bound to localhost like the rest.

Acceptance / Aceptación

  • GET /health returns 200 with a small JSON body.
  • A test in the webhook server test file covers it.

Good first issue — self-contained, ~20 lines + a test.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions