const API_URL = process.env.API_URL ?? 'http://localhost:3001'; export async function DELETE( _req: Request, { params }: { params: Promise<{ id: string }> }, ) { const { id } = await params; const res = await fetch(`${API_URL}/routes/${id}`, { method: 'DELETE' }); return new Response(null, { status: res.status }); }