/**
 * GET /api/cloud-providers
 *
 * List every known cloud deployment provider with its enabled + connected
 * flags. Powers the Deploy dropdown on the application page.
 */
import { NextResponse } from 'next/server';
import { resolve } from '../../../lib/server-container.js';
export const dynamic = 'force-dynamic';
export async function GET() {
    try {
        const useCase = resolve('ListCloudProvidersUseCase');
        const providers = await useCase.execute();
        return NextResponse.json({ providers });
    }
    catch (error) {
        return NextResponse.json({ error: error instanceof Error ? error.message : 'Internal server error' }, { status: 500 });
    }
}
