router.get('/sort/:sortBy',(req,res,next) => {
const sort = req.params.sortBy
Product.find({ gender : req.body.gender})
.then(response => {
res.status(200).json(response)
})
.catch(err => {
res.status(500).json({
error: err
})
})
})
Product.find({
gender : req.body.gender,
productType: req.body.productType
})