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