Open paboulos opened 9 years ago
A GET request to the express URL http://localhost:3000/collection/tasks/ receives a SyntaxError: JSON.parse: unexpected non-whitespace in the application/json response body.
"items" : [
{ "href" : "http://localhost:3000/collection/tasks/task3", "data" : [ {"name" : "description", "value" : "This is my third task.", "prompt" : "Description"}, {"name" : "completed", "value" : false, "prompt" : "Completed"}, {"name" : "dateDue", "value" : "2011-11-30", "prompt" : "Date Due"} ] } , { "href" : "http://localhost:3000/collection/tasks/task2", "data" : [ {"name" : "description", "value" : "This is my second task.", "prompt" : "Description"}, {"name" : "completed", "value" : true, "prompt" : "Completed"}, {"name" : "dateDue", "value" : "2011-12-29", "prompt" : "Date Due"} ] } , { "href" : "http://localhost:3000/collection/tasks/task1", "data" : [ {"name" : "description", "value" : "This is my first task.", "prompt" : "Description"}, {"name" : "completed", "value" : false, "prompt" : "Completed"}, {"name" : "dateDue", "value" : "2011-12-31", "prompt" : "Date Due"} ] } ]
The files app.js is pointing to the wrong template and layout.ejs needs to include the correct partial.
A GET request to the express URL http://localhost:3000/collection/tasks/ receives a SyntaxError: JSON.parse: unexpected non-whitespace in the application/json response body.
"items" : [