exports.addCategory = (req,res) => { const categoryObj = { name: req.body.name, slug: slugify(req.body.name) };
while requesting body name it is showing error: as string argument expected. Thanks in advance
Error: slugify: string argument expected
1.4m articles
1.4m replys
5 comments
56.9k users