app.get('/user/:id', (req, res) => { const id = req.params.id; const user = users.find(u => u.id == id); res.send(user); });