I was gonna write a snarky comment about using a <button formmethod="DELETE"> but apparently, the only methods allowed on a <form>s and <button>s are GET and POST.
I wonder why these limitations. Especially since you can get past this with an:
Though as dragonwriter points out, using a button+POST to fake a delete is much better than using a link.
Api-wise that's a reason to mux your puts and deletes in the POST handler and not in the GET handler, since it force the HTML to use buttons rather than links that might get crawled.
I wonder why these limitations. Especially since you can get past this with an:
which seems way less accessible then to have the method there right there as an attribute.