ctx =&gt; render(&#39;index.hbs&#39;));

// Add some API endpoints
const api = [
  get(&#39;/todo&#39;, todo.read),
  post(&#39;/todo&#39;, todo.create),
  put(&#39;/todo/:id&#39;, todo.update),
  del(&#39;/todo/:id&#39;, todo.delete)
];

// Launch the server with those
server(home, api);
</code></pre>
<p>This first loads the needed library and functions, then defines few routes and finally launches the server with those routes. We are using the default settings so no options are needed.</p>
<p>We are using