Closed fengmk2 closed 11 years ago
Seems like it would be better to handle this up the middleware stack with https://github.com/senchalabs/connect/blob/master/lib/middleware/methodOverride.js
These can also be done using custom actions, already available. You don't need to modify index.js --
users.map('post', '/save', logoutAction); // (or 'save', if you want the local parameter included)
It does seem like kind of a shame to provide defaults that aren't compatible with forms... But I guess that's the only way that you can do it all on such a small set of URLs.
support html form submit for data update. add save and delete actions use http method
POST