Untitled

mail@pastecode.io avatar
unknown
javascript
a year ago
249 B
4
Indexable
Never
// controller file

const login =async(req,res)=>{
   try{
// login api code
   }catch(error){
      console.log(error);
   }
}



module.exports={login}


// index/app file

const { login} = require("./controller");


router.post("/login",login);