Building a Simple API
Topic Outline (30-min)
bash코드 복사GET /tasks - Retrieve a list of tasks
javascript코드 복사app.get('/tasks', (req, res) => { res.send(tasks); });
javascript코드 복사const tasks = [ { id: 1, title: 'Task 1', completed: false }, { id: 2, title: 'Task 2', completed: true } ];
Last updated