initial commit

Signed-off-by: ale <ale@manalejandro.com>
Este commit está contenido en:
ale
2025-10-24 16:28:53 +02:00
padre 0a41e47b03
commit e0f561de09
Se han modificado 23 ficheros con 2874 adiciones y 6624 borrados

24
app/api/dns/refresh/route.js Archivo normal
Ver fichero

@@ -0,0 +1,24 @@
import { NextResponse } from 'next/server';
import ovhService from '@/lib/ovh-service';
export async function POST(request) {
try {
const { domain } = await request.json();
if (!domain) {
return NextResponse.json(
{ success: false, error: 'Domain is required' },
{ status: 400 }
);
}
await ovhService.refreshZone(domain);
return NextResponse.json({ success: true });
} catch (error) {
console.error('Error refreshing DNS zone:', error);
return NextResponse.json(
{ success: false, error: error.message },
{ status: 500 }
);
}
}