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

10 lines
398 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 GET = withLogging(async (request: NextRequest) => {
const client = createSupervisorClient();
const configs = await client.getAllConfigInfo();
return NextResponse.json(configs);
}, 'getAllConfigInfo');