import { getGameDb } from '@/lib/db/client' import { ensureSave } from '@/lib/game/save' import { getMissions } from '@/lib/game/missions' // The full mission board for the single active save; auto-initializes on first hit. export async function GET() { const db = await getGameDb() await ensureSave(db) // top-up inside getMissions assumes a save exists return Response.json(await getMissions(db)) }