import { NextResponse } from 'next/server' import { automationService } from '@/lib/automation-service-simple' export async function GET() { try { const insights = await automationService.getLearningInsights('default-user') return NextResponse.json({ success: true, insights }) } catch (error) { console.error('Get learning insights error:', error) return NextResponse.json({ success: false, error: 'Internal server error', message: error.message }, { status: 500 }) } }