Update application code and dependencies

This commit is contained in:
root
2026-05-06 17:22:50 +08:00
parent efc8f4bf78
commit a3ee04379d
60 changed files with 6793 additions and 860 deletions
+19
View File
@@ -0,0 +1,19 @@
import { prisma } from "@/app/lib/prisma"
import { NextResponse } from "next/server"
export async function GET(
request: Request,
{ params }: { params: Promise<{ slug: string }> }
) {
const { slug } = await params
const agent = await prisma.agent.findUnique({
where: { slug },
include: { category: true },
})
if (!agent) {
return NextResponse.json({ error: "Agent not found" }, { status: 404 })
}
return NextResponse.json(agent)
}