const express = require('express'); const app = express(); const PORT = 3000; const todos = [ { id: 1, title: 'Buy groceries', done: false }, { id: 2, title: 'Walk the dog', done: true }, { id: 3, title: 'Read a book', done: false }, ]; app.get('/healthz', (req, res) => { res.json({ ok: true }); }); app.get('/todos', (req, res) => { res.json(todos); }); app.listen(PORT, () => { console.log(`Server listening on http://localhost:${PORT}`); });