(plan) convert original implement plan to mock api

This commit is contained in:
Story Crater Bot
2026-08-19 09:47:14 -07:00
parent c42040319f
commit 0aef2281bc
65 changed files with 307 additions and 627 deletions
+10
View File
@@ -0,0 +1,10 @@
import { NextResponse } from 'next/server'
import { cluster, models, namespaces, nodes } from '@/lib/clusterMock'
/** Mock stand-in for the real atlas `GET /api/topology`. Serves fixture data, not a live cluster. */
export async function GET() {
return NextResponse.json({
data: { nodes, namespaces, models },
meta: { snapshotAge: cluster.snapshotAge, generation: cluster.generation, truncated: false },
})
}