initial COM2 system snapshot

This commit is contained in:
gitea
2026-03-06 15:22:40 +00:00
commit 9c0fa49baf
4377 changed files with 273033 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import { NextResponse } from "next/server";
import fs from "fs";
export async function GET() {
const path = "/opt/hx-ki/workspaces/homepage/homepage.json";
try {
const raw = fs.readFileSync(path, "utf-8");
const data = JSON.parse(raw);
return NextResponse.json(data);
} catch (err) {
console.error("Error reading homepage.json:", err);
return NextResponse.json(
{
error: "Homepage content not available",
details: "Check /opt/hx-ki/workspaces/homepage/homepage.json on Falkenstein."
},
{ status: 500 }
);
}
}