9 lines
310 B
TypeScript
9 lines
310 B
TypeScript
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))
|
|
}
|