Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
Sure
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyjbowers committed Jun 9, 2017
1 parent b3650da commit 18c4e04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ def health():
@app.route('/', methods=['GET','POST'])
def index():
if request.method == 'GET':
payload = [e.to_dict() for e in models.Entity.select()]

payload = {"entities": [e.to_dict() for e in models.Entity.select()], "requester": request.environ.get('jwt_user_email', None) or '[email protected]'}
return jsonify(payload)

if request.method == 'POST':
Expand Down

0 comments on commit 18c4e04

Please sign in to comment.