import { NextRequest, NextResponse } from 'next/server'; import { createSupervisorClient } from '@/lib/supervisor/client'; import { withLogging } from '@/lib/utils/api-logger'; export const dynamic = 'force-dynamic'; interface RouteParams { params: Promise<{ name: string }>; } export const GET = withLogging(async (request: NextRequest, { params }: RouteParams) => { const { name } = await params; const client = createSupervisorClient(); const processInfo = await client.getProcessInfo(name); return NextResponse.json(processInfo); }, 'getProcessInfo');