blob: 63248dc56f882dc22a959cdc6b7d005f21137d6c (
plain) (
blame)
1
2
3
4
5
6
|
export async function GET() {
const docs = await import.meta.glob('./*.mdx', { eager: true });
return new Response(
JSON.stringify(Object.values(docs).map(doc => doc.frontmatter))
);
}
|