Skip to content

Instantly share code, notes, and snippets.

@ayushgp
Created November 9, 2016 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayushgp/b7ef343730aad82ce791861682eda02a to your computer and use it in GitHub Desktop.
Save ayushgp/b7ef343730aad82ce791861682eda02a to your computer and use it in GitHub Desktop.
function logFirst(req, res, next){
console.log("First!");
next();
}
function logSecond(req, res, next){
console.log("Second!");
next();
}
function logThird(req, res, next){
console.log("Third!");
next();
}
app.use(logFirst, logSecond, logThird);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment