Skip to content

Commit

Permalink
Merge pull request #5 from VeeShostak/patch-1
Browse files Browse the repository at this point in the history
fix small bug: JSON cannot be a list
  • Loading branch information
jslvtr authored Dec 7, 2017
2 parents b6ee9ab + 5d66ea7 commit df6fc00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion section3/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_store(name):
#get /store
@app.route('/store')
def get_stores():
return jsonify(stores)
return jsonify({'stores': stores})
#pass

#post /store/<name> data: {name :}
Expand Down

0 comments on commit df6fc00

Please sign in to comment.