Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express dynamic api template

app.get('/user/:id', (req, res) => {
  const id = req.params.id;
  const user = users.find(u => u.id == id);
  res.send(user);
});
 
PREVIOUS NEXT
Tagged: #express #dynamic #api #template
ADD COMMENT
Topic
Name
4+1 =