Cómo devolver la respuesta JSON en Flask
from flask import jsonify
@app.route('/summary')
def summary():
d = make_summary()
return jsonify(d)
NA RACE
from flask import jsonify
@app.route('/summary')
def summary():
d = make_summary()
return jsonify(d)
@app.route('/_get_current_user')
def get_current_user():
return jsonify(
username=g.user.username,
email=g.user.email,
id=g.user.id
)