Last active
January 2, 2016 15:46
-
-
Save yesvods/5b78eb1da583de2e7b6a to your computer and use it in GitHub Desktop.
Revisions
-
Jogis revised this gist
Jan 2, 2016 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,9 @@ function server(req, res){ let next = () => { //deal with ending job } middlewares.reduceRight((next, middleware) => { return () => { middleware(req, res, next) } }, next)(); } -
Jogis revised this gist
Jan 2, 2016 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ function server(req, res){ let next = () => { //deal with ending job } let last = middlewares[2]; let bootstrap = middlewares.reduceRight((next, middleware) => { return () => { -
Jogis created this gist
Jan 2, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ function server(req, res){ let next = function(){console.log('done')} let last = middlewares[2]; let bootstrap = middlewares.reduceRight((next, middleware) => { return () => { middleware(req, res, next) } }, next) bootstrap() }