10 lines
234 B
TypeScript
10 lines
234 B
TypeScript
import { prisma } from "@/lib/prisma"
|
|
import { NextResponse } from "next/server"
|
|
|
|
export async function GET() {
|
|
const teams = await prisma.team.findMany({
|
|
include: { shiftManager: true }
|
|
})
|
|
return NextResponse.json(teams)
|
|
}
|