📜  烧瓶导入 jsonify - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:22.774000             🧑  作者: Mango

代码示例1
from flask import jsonify

@app.route('/_get_current_user')
def get_current_user():
    return jsonify(username=g.user.username,
                   email=g.user.email,
                   id=g.user.id)