"""通用 API 端点""" from quart import Blueprint, jsonify def create_health_bp() -> Blueprint: """健康检查端点 —— GET /health""" bp = Blueprint("health", __name__) @bp.route("/health", methods=["GET"]) async def health(): return jsonify( {"code": 0, "message": "success", "data": {"message": "hello world"}} ) return bp