Created
February 6, 2017 10:03
-
-
Save gauravmehla/46074bd14474c1edd6a7eff9b946119f 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
var express = require('express'); | |
var mongoose = require('mongoose'); | |
var userInfo = require('../models/userInfo'); | |
var router = express.Router(); | |
router.post('/',function(req,res){ | |
userInfo.find({'companyId': req.body.companyId, verified : req.body.verified },function(err,data){ | |
if(data){ | |
res.send(data); | |
} | |
}); | |
//res.end(); | |
}); | |
module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment