TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/dadu0699/qr-code/llms.txt
Use this file to discover all available pages before exploring further.
/api/health-check.json endpoint provides a lightweight liveness signal for the QR Code Generator service. It requires no request body and always returns a fixed JSON payload confirming the service is up. Use it for uptime monitoring dashboards, load balancer health probes, CI pipeline readiness checks, or any automated process that needs to verify the Worker is reachable before sending real traffic.
Request
No request body or query parameters are required. The endpoint accepts standard HTTP headers includingOrigin for CORS preflight flows. No Content-Type header is needed.
Response
200 OK
| Header | Value |
|---|---|
| Content-Type | application/json |
A fixed confirmation string. Always returns
"Service running smoothly" when the Worker is operational.Code Examples
CORS and OPTIONS
Like all API endpoints,/api/health-check.json includes CORS headers on every response:
| Header | Value |
|---|---|
| Access-Control-Allow-Methods | GET, OPTIONS |
| Access-Control-Allow-Headers | Content-Type |
| Access-Control-Max-Age | 86400 |
| Vary | Origin |
Access-Control-Allow-Origin is reflected only when the request Origin matches an entry in the ALLOWED_ORIGINS Worker environment variable.
Sending an OPTIONS request to this endpoint returns 204 No Content with the same CORS headers — no body — to satisfy browser preflight checks.