13 lines
258 B
TypeScript
13 lines
258 B
TypeScript
import { prisma } from "@/lib/prisma"
|
|
import { NextResponse } from "next/server"
|
|
|
|
export async function POST(req: Request) {
|
|
const body = await req.json()
|
|
|
|
const team = await prisma.team.create({
|
|
data: body
|
|
})
|
|
|
|
return NextResponse.json(team)
|
|
}
|