[nodejs] How to Add Methods to express?

  node.js, question

Because want to write an environment fordebugWhen can receive at the same timegetAndpostThe requested method (environmentproductionOnly receive whenpost), so want to findexpressinsidepostMethod, write them together, but looking for two days didn’t find itpostWhere … and finally found it, as if this method isHttp moduleYes, I’d like toexpressAdd a method, where should I write it? How does it begin? Want to talk to the existingrouter.getAndrouter.postSame usage

Just write middleware. The content of middleware is debug plus post and get.