(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
+12
View File
@@ -0,0 +1,12 @@
import { NextResponse } from 'next/server'
import { DEFAULT_KINDS, resourceKinds } from '@/lib/clusterMock'
/** Mock stand-in for the real atlas `GET /api/delivery/{app}/resources`. No real pagination — fixture is small. */
export async function GET(_req: Request, { params }: { params: Promise<{ app: string }> }) {
const { app } = await params
const kinds = resourceKinds[app] ?? DEFAULT_KINDS
return NextResponse.json({
data: { app, kinds },
meta: { cursor: null, hasMore: false },
})
}