예제 #1
0
def add():
    data = request.get_json()
    print(data)
    print("ssssssssssss")
    db = TodoDB()
    db.create(data['text'])
    db.close()
    return "ok"
예제 #2
0
def add():
    data = request.get_json()
    db = TodoDB()
    todo = db.create(data['text'])
    db.close()
    return "ok"