import { PrismaClient } from '@prisma/client' const prisma = new PrismaClient() import express from 'express' const app = express.Router() app.get('/', async (req, res) => { res.json(await prisma.cohort.findMany({ take: 10 })) }) export default app