Skip to content

Conversation

@siderdk
Copy link
Owner

@siderdk siderdk commented Mar 20, 2025

Apologies for being late n3-a🙏

Copy link

@LucasIversen LucasIversen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good

mealsRouter.use(bodyParser.urlencoded({ extended: true }));

// Get all meals
mealsRouter.get("/", async (req, res) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hell yeah!

});

//Get all reviews for a specific meal.
reviewsRouter.get("/meals/:meal_id/reviews", async (req, res) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this route be /api/reviews/meals/:meal_id/reviews?

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

Successfully merging this pull request may close these issues.

3 participants