apix/app/api/prompts/sync/route.ts
Khoa.vo 8741e3b89f
Some checks are pending
CI / build (18.x) (push) Waiting to run
CI / build (20.x) (push) Waiting to run
feat: Initial commit with multi-provider image generation
2026-01-05 13:50:35 +07:00

12 lines
392 B
TypeScript

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 });
}
}