Last active
October 20, 2015 01:54
-
-
Save bluepnume/f9fecdf6986b50f95d20 to your computer and use it in GitHub Desktop.
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 characters
| module.exports = function (settings) { | |
| settings = config(settings); | |
| settings.store = new MayflyStore(settings); | |
| var sessionMiddleware = session(settings); | |
| return function(req, res, next) { | |
| return sessionMiddleware(function(err) { | |
| if (err) { | |
| return next(err); | |
| } | |
| res.end = function() { | |
| ... | |
| } | |
| return next(); | |
| }); | |
| }; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please what language is this?