Files
supervisor-ui/app/api/supervisor/system/route.ts

13 lines
440 B
TypeScript
Raw Normal View History

import { NextRequest, NextResponse } from 'next/server';
import { createSupervisorClient } from '@/lib/supervisor/client';
import { withLogging } from '@/lib/utils/api-logger';
export const dynamic = 'force-dynamic';
export const GET = withLogging(async (request: NextRequest) => {
const client = createSupervisorClient();
const systemInfo = await client.getSystemInfo();
return NextResponse.json(systemInfo);
}, 'getSystemInfo');