So when creating a review, we used seperate routes for get all the reviews and create a new review.
What about we want to create a review on route for tour id like tour/alskdjaaasşldkas/review
So for that, in [Link], we create another route:
[Link](‘/:tourId/reviews’).post([Link], [Link], [Link]).
Since we specified a nested route and called a post requet on it, it can work now.
But it’s a bit cumbersome to use function from reviewController for tourRoutes. Let’s handle that.