API endpoint - all requests handled by Cloud Functions