how to get details from mongodb in nodejs

前端 未结 0 1477
伪装坚强ぢ
伪装坚强ぢ 2020-12-30 00:15

controller

  async isAdmin (req, res) {
    const rolee = req // working here
    const isAdmin = authMiddleWare.isAdmin(rolee);
    if(isAdmin == 0) {
               


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题