Learning Web App Development

by Semmy Purewal

Bug in Server Code

page 205

12 Apr 2014

On page 205, the Express server that serves up todos.json is missing a slash.

Specifically, the line that looks like

app.get("todos.json", function (req, res) {

should look like this

app.get("/todos.json", function (req, res) {

Thanks to Dan Candela for finding this and reporting it!