Initial commit to prepare for remote overwrite

This commit is contained in:
卡若
2026-01-09 11:57:57 +08:00
commit 924307a470
172 changed files with 16577 additions and 0 deletions

12
app/api/menu/route.ts Normal file
View File

@@ -0,0 +1,12 @@
import { NextResponse } from "next/server"
import { getBookStructure } from "@/lib/book-file-system"
export async function GET() {
try {
const structure = getBookStructure()
return NextResponse.json(structure)
} catch (error) {
console.error("Error generating menu:", error)
return NextResponse.json({ error: "Failed to generate menu" }, { status: 500 })
}
}