11 lines
No EOL
253 B
JavaScript
11 lines
No EOL
253 B
JavaScript
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 |