mirror of
https://github.com/basketikun/infinite-canvas.git
synced 2026-08-02 15:01:14 +08:00
12 lines
378 B
TypeScript
12 lines
378 B
TypeScript
import { source } from '@/lib/source';
|
|
import { llms } from 'fumadocs-core/source';
|
|
import { readFile } from 'node:fs/promises';
|
|
import { join } from 'node:path';
|
|
|
|
export const revalidate = false;
|
|
|
|
export async function GET() {
|
|
const docsIndex = await readFile(join(process.cwd(), 'index.md'), 'utf8');
|
|
return new Response([docsIndex, llms(source).index()].join('\n\n'));
|
|
}
|