"""FC-3b: /api/platforms — informational, no auth, matches GS shape."""

from quart import Blueprint, jsonify

from ..services.platforms import PLATFORMS, to_dict

platforms_bp = Blueprint("platforms", __name__, url_prefix="/api/platforms")


@platforms_bp.route("", methods=["GET"])
async def list_platforms():
    return jsonify({"platforms": {k: to_dict(v) for k, v in PLATFORMS.items()}})
