示例#1
0
def records():
    return jsonify(find_records(mongo))
示例#2
0
def record(id):
    return jsonify(find_records(mongo, id))
示例#3
0
def record(id):
    record = find_records(mongo, id)
    if len(record) == 0:
        return ('', 204)
    else:
        return jsonify(record[0])