"""Vercel API endpoint for the health route.""" import json def handler(request): """ Vercel API route handler for health check. """ # Prepare response response_body = { "status": "healthy", "timestamp": "2026-01-14", "platform": "Vercel serverless" } # Return response in Vercel format return { "statusCode": 200, "headers": { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, OPTIONS", "Access-Control-Allow-Headers": "Content-Type, Authorization" }, "body": json.dumps(response_body) } # For Vercel Python API Routes, export the handler function handler.__name__ = 'handler'