14 lines
315 B
TypeScript
14 lines
315 B
TypeScript
import { prisma } from "@/lib/prisma"
|
|
import { NextResponse } from "next/server"
|
|
|
|
export async function GET() {
|
|
const managers = await prisma.shiftManager.findMany({
|
|
where: { status: "active" },
|
|
include: {
|
|
teams: true
|
|
},
|
|
orderBy: { empNo: "asc" }
|
|
})
|
|
return NextResponse.json(managers)
|
|
}
|