mud_server.api.routes.utils =========================== .. py:module:: mud_server.api.routes.utils .. autoapi-nested-parse:: Shared helpers for API route modules. Functions --------- .. autoapisummary:: mud_server.api.routes.utils.get_available_worlds mud_server.api.routes.utils.resolve_zone_id Module Contents --------------- .. py:function:: get_available_worlds(user_id, role) Return world options for account dashboards and world selectors. Non-admin users receive invite-only worlds as preview rows so the account dashboard can label them as locked/invite without granting access. .. py:function:: resolve_zone_id(engine, room_id, world_id) Resolve a room_id to its zone id using the loaded world data. Returns None if the room cannot be mapped to a zone.