Fixed automation v2 start button (relative API URLs) Fixed batch analysis API endpoint in simple-automation Fixed AI learning storage with correct userId Implemented comprehensive learning data storage Fixed parallel analysis system working correctly - Changed frontend API calls from localhost:9001 to relative URLs - Updated simple-automation to use localhost:3000 for batch analysis - Fixed learning integration with 'default-user' instead of 'system' - AI learning now stores analysis results with confidence/recommendations - Batch analysis working: 35s completion, 85% confidence, learning stored - True parallel screenshot system operational (6 screenshots when multi-timeframe) - Automation start/stop functionality fully working
16 lines
422 B
JavaScript
16 lines
422 B
JavaScript
import { NextResponse } from 'next/server';
|
|
import { simpleAutomation } from '@/lib/simple-automation';
|
|
|
|
export async function GET() {
|
|
try {
|
|
const status = simpleAutomation.getStatus();
|
|
return NextResponse.json(status);
|
|
} catch (error) {
|
|
console.error('Status error:', error);
|
|
return NextResponse.json({
|
|
error: 'Failed to get status',
|
|
message: error.message
|
|
}, { status: 500 });
|
|
}
|
|
}
|