import { buildStorage } from "../../../storage/buildStorage"; import { readRoute } from "../_read"; export const dynamic = "force-dynamic"; // GET /api/ops/storage // // The /storage page's payload (`buildStorage`): every storage location with // whether it is mounted, its free space, its channels and the bytes of each // tier they hold, the corpus volume's text and clip tiers, and the saved-video // store. Probes are the page's own (memoised 10 s); sizes come off the // channels' reports, never a walk. export async function GET(request: Request) { return readRoute(request, [], async () => ({ storage: await buildStorage() })); }