             try
                 list.path = JSON.parse list.path
             catch error
+                list.path = null
 
         send length: todoLists.length, rows: todoLists
 

        else if todoList is null
            send error: 'TodoList not found', 404
        else
            todoList.path = JSON.parse todoList.path
            @todoList = todoList
            next()
, only: ['destroy', 'show']


###*
# Before each todoList list modification current tree is loaded. If it does not
# exist it is created.
###

# Return all todoLists
###
action 'all', ->
    TodoList.all returnTodoLists

###
# Return a todoList
