forked from orbit-oss/flask
Merge pull request #700 from SpOOnman/master
Add import to jsonify example
This commit is contained in:
commit
84958e5729
1 changed files with 2 additions and 0 deletions
|
|
@ -142,6 +142,8 @@ def jsonify(*args, **kwargs):
|
|||
|
||||
Example usage::
|
||||
|
||||
from flask import jsonify
|
||||
|
||||
@app.route('/_get_current_user')
|
||||
def get_current_user():
|
||||
return jsonify(username=g.user.username,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue