Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = {
- placeOrder: function (req, res) {
- if (true === req.isSocket) {
- // Pseudo code:
- if (passport.authenticated(['user','admin'])) {
- Order.save();
- }
- // end pseudo code
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement