Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels