AI Assistant c7f037c58a feat: Complete OpenClaw Dashboard with all features
- Dashboard Overview with real-time status display
- Live Log Viewer (scrollable, filterable)
- Config Editor with JSON syntax highlighting
- Model Switcher for provider management
- Provider Manager for API key configuration
- Quick Actions for common tasks
- API Routes: status, logs, config, actions, models, providers

Tech Stack:
- Next.js 14 (App Router)
- TypeScript
- Tailwind CSS
- shadcn/ui components
- CodeMirror for JSON editing
- Docker support with docker-compose
2026-02-27 05:55:23 +00:00

18 lines
482 B
TypeScript

import { NextResponse } from 'next/server';
import { getGatewayLogs } from '@/lib/openclaw';
export async function GET(request: Request) {
try {
const { searchParams } = new URL(request.url);
const lines = parseInt(searchParams.get('lines') || '100', 10);
const logs = await getGatewayLogs(lines);
return NextResponse.json({ logs });
} catch (error) {
return NextResponse.json(
{ error: (error as Error).message },
{ status: 500 }
);
}
}