You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, if we visit localhost:5000/products, we are making a GET request to the "/" route in the producs router. That route is setup like this:
router.route("/").get(controller.list).all(methodNotAllowed);
The list command is setup like this:
function list(req, res, next) {
res.json({
data: [{ product_title: "product 1" }, { product_title: "product 2" }],
});
}
So the expected JSON when visiting localhost:5000/products will not have prices displaying.
The text was updated successfully, but these errors were encountered:
The README.md says:

However, if we visit localhost:5000/products, we are making a GET request to the "/" route in the producs router. That route is setup like this:
router.route("/").get(controller.list).all(methodNotAllowed);
The list command is setup like this:
function list(req, res, next) {
res.json({
data: [{ product_title: "product 1" }, { product_title: "product 2" }],
});
}
So the expected JSON when visiting localhost:5000/products will not have prices displaying.
The text was updated successfully, but these errors were encountered: