Initial commit

This commit is contained in:
KabundiNjuki
2026-10-05 16:40:36 +03:00
commit ff743a1397
108 changed files with 15390 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import { NextResponse } from 'next/server'
import { METHODS, frappeCall } from '@/lib/lukenya-api'
// Current published legal documents (terms, indemnity, privacy, optional consents).
export async function GET() {
try {
const docs = await frappeCall<unknown[]>(METHODS.legalDocuments, { revalidate: 60 })
return NextResponse.json(docs || [], { headers: { 'Cache-Control': 'public, max-age=60' } })
} catch {
return NextResponse.json([], { status: 503 })
}
}