I am creating a CRUD app in node with fastify and TypeScript. How can I override rest methods in html forms?
For example in the Html:
<form action="/removeproduct" method="DELETE">
<input type="text" name="productname" />
</form>
And in the node fastify code:
app.delete('/removeproduct', (request, reply) => {
// code to remove a product from db
})