Skip to content

Commit

Permalink
init route duplicateTour
Browse files Browse the repository at this point in the history
  • Loading branch information
DucHuy2801 committed May 16, 2024
1 parent 6e68089 commit b2a8c71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/src/routes/tour/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ router.get("/all/reject", asyncHandler(tourController.getRejectedTours))
router.get("/search", tourController.searchTour)
router.get("/comments", authenticate, tourController.getReviewByNumberRate)
router.get("/:tour_id", asyncHandler(tourController.getTour))
router.post("/:tour_id", asyncHandler(tourController.duplicateTour))
router.get("/:tour_id/reviews", asyncHandler(tourController.getAllReviewsByTourId))
router.get("/:tour_id/comments", asyncHandler(tourController.getCommentOfTour))
router.get("/:tour_id/comments/:parent_comment_id", asyncHandler(commentController.getCommentsByParentId))
Expand Down

0 comments on commit b2a8c71

Please sign in to comment.