feat(swarm): add GET /api/swarm/archetypes route
This commit is contained in:
parent
05b8c20637
commit
2f256bd199
1 changed files with 7 additions and 0 deletions
7
src/app/api/swarm/archetypes/route.ts
Normal file
7
src/app/api/swarm/archetypes/route.ts
Normal file
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue