mirror of
https://github.com/cliffe/BreakEscape.git
synced 2026-02-21 11:18:08 +00:00
Changes: - Revert client game.js to use /scenario endpoint instead of /scenario_map - Update /scenario endpoint to return filtered_scenario_for_bootstrap - Add filter_requires_recursive method to remove sensitive 'requires' fields - Keep /scenario_map for potential future navigation queries - Add error handling to scenario endpoint Rationale: - The game client expects full scenario structure (startRoom, rooms, startItemsInInventory, etc.) - scenario_map returns minimal structure incompatible with game initialization - filtered_scenario_for_bootstrap provides room metadata without objects (lazy-loaded) - filter_requires_recursive ensures puzzle solutions aren't exposed to client - Maintains security while providing necessary data for game initialization