Skip to content

Readme error #13

Open
Open
@dsmith7789

Description

@dsmith7789

The README.md says:
image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions