With expressjs, app.all() handles all request, and now I want the request method type(get or post) in app.all(), but I don't know how to do this. I've been search in expressjs document, but didn't find anything valuable.
Thanks for your answer.
I've found it! req.method will do, so easy!