System Endpoints
Health Check
GET /api/health
Returns the server health status. This endpoint is public (no authentication required). Used by Docker health checks.
Example
bash
curl http://localhost:3000/api/healthResponse
json
{
"status": "ok"
}The endpoint checks:
- UI dist directory exists and is readable
- Templates directory exists and is writable
- Assets directory exists and is writable
Metrics
GET /api/metrics
Returns internal server metrics for monitoring.
Example
bash
curl http://localhost:3000/api/metricsResponse
json
{
"uptime": 3600,
"requests": 150,
"latency": 45,
"errors": 2,
"memory": 65432100
}| Field | Type | Description |
|---|---|---|
uptime | number | Server uptime in seconds |
requests | number | Total request count since server start |
latency | number | Average response time in milliseconds |
errors | number | Total error count since server start |
memory | number | Process memory usage in bytes |