🚀 Express BetterAuth API

A comprehensive Express.js API with BetterAuth, Prisma, PostgreSQL, and modern development tools

✅ System Status: HEALTHY

🏥 Health Status

Database UP 4ms
Authentication UP 0ms
Vector Store UP 0ms
System Info:
Uptime: 30177s | Memory: 88MB | Node: v22.21.1 | Platform: linux

📚 API Documentation

Comprehensive API documentation with Swagger/OpenAPI specification:

GET/api/docs

🔐 Authentication Endpoints

GET/api/auth/me - Get current user
POST/api/auth/2fa/enable - Enable 2FA
POST/api/auth/2fa/verify - Verify 2FA token
POST/api/auth/2fa/disable - Disable 2FA
POST/api/auth/2fa/backup-codes - Regenerate backup codes
GET/api/auth/audit-logs - Get user audit logs

🏥 Health & Monitoring

GET/api/health - Basic health check
GET/api/health/detailed - Detailed health check
GET/api/health/metrics - Prometheus metrics

🤖 AI Services (Simple Proxy)

POST/api/agent/store - Store website documents
POST/api/agent/chat - AI chat with RAG (streaming)
DELETE/api/agent/documents/:userId - Delete user documents

🔒 Protected Routes

GET/api/protected - Example protected route

✨ Features