airbnb/rendr — pull request #169 by bigethan (2013-10-31 21:49:19+00:00)
Title: Enable all HTTP Verbs

This changes lets the express server handle POST, PUT, DELETE, UPDATE, etc. Currently Express will 404 whenever those are attempted as express includes the http verb in it's route matching logic (backbone couldn't care less).

A more specific option here is to enrich the routes.js file to include the verb along with the path and the controller and the action, though it starts to enforce a bit more structure on the routes.js than the current free form structure (could use a default of GET if no verb is specified, so not a breaking change). Wasn't sure what would be preferred, I'm torn on whether the wildcard has any real downsides, happy to implement either way. If you prefer the latter route, I'll add tests too.