Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express post

app.post('/signup', async(req, res) => {
  const { email, firstName } = req.body
  const user = new User({ email, firstName })
  const ret = await user.save()
  res.json(ret)
})
Source by zellwk.com #
 
PREVIOUS NEXT
Tagged: #express #post
ADD COMMENT
Topic
Name
2+5 =