api: GET /api/crew roster endpoint, OpenAPI spec updated in code

This commit is contained in:
2026-09-28 22:47:18 +00:00
parent 7a9ff110f3
commit a2c8586618
3 changed files with 57 additions and 1 deletions
+8
View File
@@ -0,0 +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.
export async function GET() {
const db = await getGameDb()
return Response.json(await getCrewState(db))
}