import { NextResponse } from 'next/server' import { automationService } from '@/lib/automation-service-simple' export async function POST() { try { const success = await automationService.resumeAutomation() if (success) { return NextResponse.json({ success: true, message: 'Automation resumed successfully' }) } else { return NextResponse.json({ success: false, error: 'Failed to resume automation' }, { status: 500 }) } } catch (error) { console.error('Resume automation error:', error) return NextResponse.json({ success: false, error: 'Internal server error', message: error.message }, { status: 500 }) } }