10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
|
export async function get() {
|
||
|
const mdxPages = await import.meta.glob('./*.mdx', { eager: true });
|
||
|
|
||
|
return {
|
||
|
body: JSON.stringify({
|
||
|
titles: Object.values(mdxPages ?? {}).map(v => v?.frontmatter?.title),
|
||
|
})
|
||
|
}
|
||
|
}
|