tor and an error message:</p>
<pre><code class=language-javascript>var Data = {
    todos: {
        list: null,
        error: &quot;&quot;,
        fetch: function() {
            m.request({
                method: &quot;GET&quot;,
                url: &quot;/api/v1/todos&quot;,
            })
            .then(function(items) {
                Data.todos.list = items
            })
            .catch(function(e) {
                Data.todos.error = e.message
            })
        }
    }
}

var Todos =