feat(api): world/system/crew snapshots expose the active + pending task queue (#44)
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { getGameDb } from '@/lib/db/client'
|
||||
import { getCrewState } from '@/lib/game/save'
|
||||
|
||||
// The ship's crew roster: starting crew plus members found while exploring. Auto-initializes on first hit.
|
||||
// The ship's crew roster wrapped with the snapshot task queue: { crew, tasks } — the roster
|
||||
// (starting crew plus members found while exploring) and the ACTIVE + PENDING queue. Auto-initializes on first hit.
|
||||
export async function GET() {
|
||||
const db = await getGameDb()
|
||||
return Response.json(await getCrewState(db))
|
||||
|
||||
Reference in New Issue
Block a user