api: GET /api/world + POST /api/jump, OpenAPI spec updated in code

This commit is contained in:
2026-09-28 21:29:23 +00:00
parent 58ac64af4f
commit cc6abe8f36
3 changed files with 148 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
import { getGameDb } from '@/lib/db/client'
import { getWorldState } from '@/lib/game/save'
// The full world state for the single active save; auto-initializes on first hit.
export async function GET() {
const db = await getGameDb()
return Response.json(await getWorldState(db))
}