Send a request
These commands use this page’s origin, so the same snippets work behind Caddy.
GET
curl -sS 'http://localhost:3000/hello?name=wharf'
POST
curl -sS -X POST 'http://localhost:3000/hooks/example' \
-H 'content-type: application/json' \
-d '{"event":"ping","ok":true}'
Health
curl -sS 'http://localhost:3000/health'