Skip to content

Commit df6fc00

Browse files
authored
Merge pull request #5 from VeeShostak/patch-1
fix small bug: JSON cannot be a list
2 parents b6ee9ab + 5d66ea7 commit df6fc00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

section3/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_store(name):
3535
#get /store
3636
@app.route('/store')
3737
def get_stores():
38-
return jsonify(stores)
38+
return jsonify({'stores': stores})
3939
#pass
4040

4141
#post /store/<name> data: {name :}

0 commit comments

Comments
 (0)