ca8a27fee7
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
13 lines
395 B
Python
13 lines
395 B
Python
"""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()}})
|