import json def handler(request): 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({"message": "Test API route working", "status": "success"}) } # For Vercel Python API Routes, export the handler function handler.__name__ = 'handler'