in src/main/resources/static/Scripts/todoListCtrl.js [22:28]
$scope.finishSwitch = function (todo) {
todoListSvc.putItem(todo).error(function (err) {
todo.finished = !todo.finished;
$scope.error = err;
$scope.loadingMessage = '';
})
};