2025-11-23 20:53:23 +01:00
|
|
|
import { NextRequest, NextResponse } from 'next/server';
|
2025-11-23 18:23:51 +01:00
|
|
|
import { createSupervisorClient } from '@/lib/supervisor/client';
|
2025-11-23 20:53:23 +01:00
|
|
|
import { withLogging } from '@/lib/utils/api-logger';
|
2025-11-23 18:23:51 +01:00
|
|
|
|
|
|
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
|
|
2025-11-23 20:53:23 +01:00
|
|
|
export const GET = withLogging(async (request: NextRequest) => {
|
|
|
|
|
const client = createSupervisorClient();
|
|
|
|
|
const systemInfo = await client.getSystemInfo();
|
|
|
|
|
|
|
|
|
|
return NextResponse.json(systemInfo);
|
|
|
|
|
}, 'getSystemInfo');
|