예제 #1
0
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))
예제 #2
0
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))
예제 #3
0
def deleteTodoItem(id:int):
  try:
    return DeleteTodoItem(id)
  except Exception as e:
    return wrapError(str(e))
예제 #4
0
def updateTodoItem():
  try:
    return UpdateTodoItem(request)
  except Exception as e:
    return wrapError(str(e))
예제 #5
0
def deleteList(id:int):
  try:
    return deleteTodoList(id)
  except Exception as e:
    return wrapError(str(e))