9 lines
210 B
TypeScript
9 lines
210 B
TypeScript
import { PrismaClient } from "@prisma/client"
|
|
|
|
const db = new PrismaClient()
|
|
|
|
export default defineEventHandler(async(event) => {
|
|
const body = await readBody(event)
|
|
console.info(body)
|
|
return body
|
|
}) |