jevstrudel.git / website / src / pages / jev / reference.json.js
1// The reference tab's functions as the MCP's api_reference reads them
2// (worker/src/reference.ts): name, synonyms, tags, the description and each
3// parameter as text, and the examples, from jsdoc's doc.json (built before
4// the site: package.json's prebuild and prestart).
5import docs from '../../../../doc.json';
6import { referenceData } from '../../jev/reference.mjs';
7
8export function GET() {
9  return new Response(JSON.stringify({ functions: referenceData(docs.docs) }), {
10    headers: { 'Content-Type': 'application/json' },
11  });
12}