Skip to content

Instantly share code, notes, and snippets.

@yesvods
Last active January 2, 2016 15:46
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 yesvods/5b78eb1da583de2e7b6a to your computer and use it in GitHub Desktop.
Save yesvods/5b78eb1da583de2e7b6a to your computer and use it in GitHub Desktop.
Express-lite
function server(req, res){
let next = () => {
//deal with ending job
}
middlewares.reduceRight((next, middleware) => {
return () => {
middleware(req, res, next)
}
}, next)();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment