parse_response_object: load response content as json format if possible

This commit is contained in:
debugtalk
2017-06-20 20:24:38 +08:00
parent 278aaff290
commit 4d69342d40
3 changed files with 25 additions and 2 deletions

View File

@@ -19,6 +19,10 @@ data structure:
"""
users_dict = {}
@app.route('/')
def index():
return "Hello World!"
@app.route('/api/users')
def get_users():
users_list = [user for uid, user in users_dict.items()]