Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

add save and delete actions use http method `POST` #10

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
5 participants
Member

fengmk2 commented Apr 22, 2011

support html form submit for data update. add save and delete actions use http method POST

deedubs commented May 19, 2011

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)

drewish commented Mar 10, 2012

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.

@mereskin mereskin closed this Sep 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment