Hi guys! How can i check if a post request contains a certain string? [I'm using Next.js] Right now my api code is:
if (session) {
if (req.method !=='POST'){
return res.status(405).json({information: `ADD Method Not Allowed | Account Found.`})
}else if (req.contains !== session.user.email){
return res.status(405).json({information: `ADD Method Not Allowed | Account Found.`})
}
}
the "req.contains" doesn't exist, and i don't know how to check it, please help!