Skip to content

Instantly share code, notes, and snippets.

@swallentin
Created September 20, 2012 06:02
Show Gist options
  • Save swallentin/3754201 to your computer and use it in GitHub Desktop.
Save swallentin/3754201 to your computer and use it in GitHub Desktop.
Express.js Middleware Template
module.exports = function(req, res, next) {
console.log(req.method, req.path, req.body);
next();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment