浏览文件
agent.md.ts
6 行 · 372 B历史下载| 1 | import guide from '../../../docs/guide/agent.md?raw'; |
| 2 | |
| 3 | export function GET() { |
| 4 | const text = guide.replace(/^---\n[\s\S]*?\n---\n/, '').replace(/\]\(([a-z-]+)\.md(#[^)]*)?\)/g, (_, slug: string, hash = '') => `](https://lee-xeo.github.io/Claude-Cage/docs/${slug}/${hash})`); |
| 5 | return new Response(text, { headers: { 'Content-Type': 'text/markdown; charset=utf-8' } }); |
| 6 | } |

