[taskboard] add agent detail pages

This commit is contained in:
2026-03-07 13:57:39 -08:00
parent 195ef5b2ca
commit 2ec17712c9
4 changed files with 319 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { NextResponse } from "next/server";
import { findAgentBySlug } from "@/lib/agents";
export async function GET(
_request: Request,
{ params }: { params: Promise<{ slug: string }> },
) {
const { slug } = await params;
const agent = await findAgentBySlug(slug);
if (!agent) {
return NextResponse.json({ error: "agent_not_found" }, { status: 404 });
}
return NextResponse.json(agent);
}