Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Rahul Singh
Full Stack JavaScript Techdegree Student 45 PointsBoth the router.put and router.delete routes don't work for me. They throw 404 errors when I use the exact code as shown
After researching I found that browsers don't support put and delete http requests

Lilly Piri
Full Stack JavaScript Techdegree Graduate 19,468 PointsIf it's the same problem I had, then it's because I didn't have method-override
in my project. This part in the delete pug file won't work without it "?_method=DELETE", method="post"
The link Thomas posted sheds some light on why that is.
https://www.npmjs.com/package/method-override
Thomas Nilsen
14,957 PointsThomas Nilsen
14,957 PointsYou're wrong
Can you show your code?