Skip to content

Instantly share code, notes, and snippets.

@WaleedAshraf
Last active March 18, 2018 19:06
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 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