mirror of
https://github.com/warmbly/warmbly.git
synced 2026-08-20 00:01:21 +00:00
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
import { source } from '@/lib/source';
|
|
|
|
export const revalidate = false;
|
|
|
|
export async function GET() {
|
|
const lines: string[] = [];
|
|
lines.push('# Documentation');
|
|
lines.push('');
|
|
for (const page of source.getPages()) {
|
|
lines.push(`- [${page.data.title}](${page.url}): ${page.data.description}`);
|
|
}
|
|
return new Response(lines.join('\n'));
|
|
}
|