From 2f256bd1996e303c619e9fc95825e192743c0e64 Mon Sep 17 00:00:00 2001 From: zenchantlive Date: Fri, 20 Feb 2026 17:08:26 -0800 Subject: [PATCH] feat(swarm): add GET /api/swarm/archetypes route --- src/app/api/swarm/archetypes/route.ts | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/app/api/swarm/archetypes/route.ts diff --git a/src/app/api/swarm/archetypes/route.ts b/src/app/api/swarm/archetypes/route.ts new file mode 100644 index 0000000..a08fbf1 --- /dev/null +++ b/src/app/api/swarm/archetypes/route.ts @@ -0,0 +1,7 @@ +import { NextResponse } from 'next/server'; +import { getArchetypes } from '@/lib/server/beads-fs'; + +export async function GET() { + const data = await getArchetypes(); + return NextResponse.json(data); +}