def todoItems(lid:int): try: if request.method=="GET": return getTodoItems(request,lid) if request.method=="POST": return addTodoItem(request,lid) except Exception as e: return wrapError(str(e))
def todos(): try: if request.method=="GET": return getTodoLists(request) if request.method=="POST": return addTodoList(request) if request.method=="PUT": return updateTodoList(request) except Exception as e: return wrapError(str(e))
def deleteTodoItem(id:int): try: return DeleteTodoItem(id) except Exception as e: return wrapError(str(e))
def updateTodoItem(): try: return UpdateTodoItem(request) except Exception as e: return wrapError(str(e))
def deleteList(id:int): try: return deleteTodoList(id) except Exception as e: return wrapError(str(e))