Answers for "flask import jsonify"

1

flask import jsonify

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)
Posted by: Guest on June-13-2020

Python Answers by Framework

Browse Popular Code Answers by Language