feat: integrate Pi backend and Pi Web

This commit is contained in:
luckyyzh
2026-07-30 19:37:53 +08:00
commit 7392ab9dd7
1390 changed files with 337197 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
import { NextResponse } from "next/server";
import { listAllSessions } from "@/lib/session-reader";
import { getRunningRpcSessionIds } from "@/lib/rpc-manager";
export async function GET() {
try {
const sessions = await listAllSessions();
return NextResponse.json({ sessions, runningSessionIds: getRunningRpcSessionIds() });
} catch (error) {
return NextResponse.json(
{ error: String(error) },
{ status: 500 }
);
}
}