I am working with facebook app canvas which requires post.
I am using express to handle app.post('/') and app.get('/'). Is it possible to combine these in a single function?
I am working with facebook app canvas which requires post. I am using express
Share
Aside of binding same function to
POSTandGETas suggested by JustSid in other answer you may useapp.all('/', handler)to route all request types to function.