title: How can I pass id to the router delete method?
body: <p>I have a list of data shown with a delete button as below.</p>
  
  <pre><code>&lt;ul class="quotes"&gt;
      &lt;% for(var i=0; i&lt;quotes.length; i++) {%&gt;
          &lt;li class="quote" data-id= "&lt;%= quotes[i]._id %&gt;"&gt;
              &lt;span&gt;&lt;%= quotes[i].name %&gt;&lt;/span&gt; - 
              &lt;span&gt;&lt;b&gt;&lt;%= quotes[i].price %&gt;&lt;/b&gt;&lt;/span&gt;
              &lt;button class="delete-todo"&gt;&amp;times;&lt;/button&gt;
          &lt;/li&gt;
      &lt;% } %&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>From jQuery I am passing the id to be deleted as follow:</p>
  
  <pre><code>$('.delete-todo').on('click',  function(e){
      e.preventDefault();
      var id = $(this).parent().data('id');
      $.post('/products',{'id':id},function(data){
      },'json');
  });
  </code></pre>
  
  <p>I have a product.router.js as follows:</p>
  
  <pre><code>router.delete(':/id',  product_controller.product_delete);
  </code></pre>
  
  <p>I am confused about how to call this delete of router and pass the id to this router method.</p>