import { listSources } from "@/lib/research/sources"; import { fail, ok } from "../_respond"; export const dynamic = "force-dynamic"; // GET -> { sources: [{ handle, kind, label, detail }] }: the corpora the ask // bar may read, the local one first (lib/research/sources.ts). export async function GET() { try { return ok({ sources: await listSources() }); } catch (e) { return fail(e); } }