import { NextResponse } from 'next/server';
import { syncPromptsService } from '@/lib/prompts-service';

export async function POST() {
    try {
        const result = await syncPromptsService();
        return NextResponse.json(result);
    } catch (error) {
        console.error("Sync failed:", error);
        return NextResponse.json({ error: 'Sync failed' }, { status: 500 });
    }
}
