// Front-end fetch('/api/users') .then(response => response.json()) .then(data => displayUsers(data)); // Back-end (Node.js) app.get('/api/users', (req, res) => { const users = db.getAllUsers(); res.json(users); });