Skip to content

Instantly share code, notes, and snippets.

@WaleedAshraf
Last active March 18, 2018 19:06
Show Gist options
  • Save WaleedAshraf/21d63521009641fb51d1832c08765630 to your computer and use it in GitHub Desktop.
Save WaleedAshraf/21d63521009641fb51d1832c08765630 to your computer and use it in GitHub Desktop.
Mock Express Session
exports.submit = function(req, res) {
if(req.session.count && req.session.count > 0) { // true
//do something
res.sendStatus(200);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment