Guest User

Untitled

a guest
Aug 20th, 2019
66
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. router.put('/:id', async (req, res) => {
  2.     try{
  3.         let id = req.params.id_user
  4.         let response = await db.update(id, req.body.name_user, req.body.address_user)
  5.         res.json(response)
  6.     }catch(e) {
  7.         console.log(e)
  8.         res.sendStatus(500)
  9.     }
  10. })
RAW Paste Data