1
I am loading some information from the bank and one of the columns will be a link that will delete an infomation.
By being in a table, the link href is like this:
href="/delete/ID(vem do template engine)?_method=DELETE
He should go to my route that’s like this:
router.delete('/delete/:_id', "Resultado do meu controller"));
The configuration of my app.js to inherit the PUT and DELETE options looks like this:
app.use(methodOverride('XHTTPMethod'));
app.use(methodOverride('XHTTPMethodOverride'));
app.use(methodOverride('XMethodOverride'));
app.use(methodOverride('_method'));
That way, there is something else I can do so that when clicking the delete link is redirected to the route router.delete?