- 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
15 lines
377 B
TypeScript
15 lines
377 B
TypeScript
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 }
|
|
);
|
|
}
|
|
}
|