Simple REST API for health checks, status monitoring, and user management.
/api/healthz
Health check
Returns the current health status of the API server. Use this to monitor uptime.
/api/status
Server status
Returns detailed server information including Node.js version, uptime, and configuration status.
/api/auth/register
Register new user
/api/auth/login
Log in user
/api/auth/me
Get current user
Returns the currently logged-in user. Requires an active session cookie.
/api/auth/logout
Log out
Destroys the session and logs the user out. No request body required.
/api/auth/forgot-password
Request password reset
# Health check
curl /api/healthz
# Register
curl -X POST /api/auth/register \
-H "Content-Type: application/json" \
-d '{"name":"Jane","email":"jane@example.com","password":"secret123"}'
# Login
curl -X POST /api/auth/login \
-H "Content-Type: application/json" \
-c cookies.txt \
-d '{"email":"jane@example.com","password":"secret123"}'