Code uit een AI-prototype
Verzonnen bestand · echte fouten
1// app/api/orders/route.ts2import { createClient } from '@supabase/supabase-js'3 4const SUPABASE_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6..."5 6export async function GET(req) {7 const supabase = createClient(URL, SUPABASE_KEY)8 9 const { data } = await supabase10 .from('orders')11 .select('*')12 13 return Response.json(data)14}Dit compileert, doet het in de demo en gaat live. Klik op scannen.
Veertien regels, drie gaten waarvan twee je hele database opendoen. Een echte audit loopt zo door je hele project heen.