router.get("/delete", async function(req, res, rext)
{
await User.remove({username: 'first'});
});
//delete user
router.delete("/:id",verifyTokenAndAdmin,async (req, res)=>{
try{
await User.findByIdAndDelete(req.params.id)
res.status(200).json("User has been deleted");
}catch(err){
res.status(500).json(err);
}
})