Using PUT to delete in Node.js
<p>In <code>node.js</code>, I can use</p>

<pre><code>app.route('/').get(getObjectList).post(postAddObject).put(putDeleteObject);
</code></pre>

<p>but I don't know how to trigger <code>...put(putDeleteObject)</code> in html.</p>

<p>Is it true that we are limited to <code>post</code> and <code>get</code> in html? When can I then use <code>put</code>? Is it only for REST requests through, for instance, jQuery?</p>

<p>How do you normally delete objects? I think it is more safe to go through a post request rather than a get request, but it would be great to chain it like I did in the code example, however, it is probably not possible if the html cannot distinguish between post and put. I have seen some examples where they use</p>

<pre><code>&lt;form method="post"&gt;
  &lt;input type='hidden' name='_method' value='put'&gt;
  &lt;button type='submit'&gt;Delete&lt;/button&gt;
&lt;/form&gt;
</code></pre>

<p>but it doesn't work for me.</p>

<h1>Edit</h1>

<p>I meant to use <code>DELETE</code> and not <code>PUT</code>, but the problem stay the same. I don't know how to change my html to support the <code>DELETE</code> request.</p>