Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by kite.com #
 
PREVIOUS NEXT
Tagged: #flask #import #jsonify
ADD COMMENT
Topic
Name
6+2 =