Skip to content

Instantly share code, notes, and snippets.

@bluepnume
Last active October 20, 2015 01:54
Show Gist options
  • Select an option

  • Save bluepnume/f9fecdf6986b50f95d20 to your computer and use it in GitHub Desktop.

Select an option

Save bluepnume/f9fecdf6986b50f95d20 to your computer and use it in GitHub Desktop.
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();
});
};
};
@cyberorgnizm

Copy link
Copy Markdown

Please what language is this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment