Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme error #13

Open
dsmith7789 opened this issue Aug 15, 2024 · 0 comments
Open

Readme error #13

dsmith7789 opened this issue Aug 15, 2024 · 0 comments

Comments

@dsmith7789
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant