import { NextResponse } from 'next/server'; import { getGatewayStatus, getActiveModel, getSystemStatus } from '@/lib/openclaw'; export async function GET() { try { const status = await getSystemStatus(); return NextResponse.json(status); } catch (error) { return NextResponse.json( { error: (error as Error).message }, { status: 500 } ); } }