Download src/app/api/docs/codex-cli/route.ts from rais133/omniroute: direct link, hf CLI and curl.
- Browser
- Download file 430 Bytes
-
https://huggingface.co/spaces/rais133/omniroute/resolve/main/src/app/api/docs/codex-cli/route.ts
- Command line
-
hf download hf://spaces/rais133/omniroute/src/app/api/docs/codex-cli/route.ts
-
curl -L -o route.ts https://huggingface.co/spaces/rais133/omniroute/resolve/main/src/app/api/docs/codex-cli/route.ts
430 Bytes
| import { readFile } from "fs/promises"; | |
| import path from "path"; | |
| import { NextResponse } from "next/server"; | |
| export async function GET() { | |
| try { | |
| const filePath = path.join(process.cwd(), "docs/guides/CODEX-CLI-CONFIGURATION.md"); | |
| const content = await readFile(filePath, "utf-8"); | |
| return NextResponse.json({ content }); | |
| } catch { | |
| return NextResponse.json({ error: "Guide not found" }, { status: 404 }); | |
| } | |
| } | |