SHARE
TWEET

Untitled

a guest Aug 20th, 2019 63 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top