Пример #1
0
def read():
    result = current_user_schema.dump(g.user)
    return jsonify(result.data)
Пример #2
0
def read():
    user = User.get(request.user_id)
    result = current_user_schema.dump(user)
    return jsonify(result.data)