import prisma from 'src/lib/prisma'; import { NextResponse } from 'next/server'; export async function GET() { try { const services = await prisma.service.findMany(); return NextResponse.json(services); } catch (error) { return NextResponse.json({ error: 'Failed to fetch services' }, { status: 500 }); } }