Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubya747 committed Dec 25, 2021
1 parent d7896cb commit ed02a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lesson-3-implementing-message-passing/flask-starter/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def computers():
if request.method == 'GET':
return jsonify(retrieve_orders())
elif request.method == 'POST':
return jsonify(create_orders(body=request.json))
return jsonify(create_orders(request.json))
else:
raise Exception('Unsupported HTTP request type.')

Expand Down

0 comments on commit ed02a67

Please sign in to comment.