Skip to content

Commit

Permalink
[#83] Fix: PathVariable 인데 RequestParam 이 붙은 부분 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SY2on committed Jan 18, 2024
1 parent ea1c25d commit 9d719de
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public BaseResponse<?> deleteReview(
@GetMapping("/meals/{mealId}")
public BaseResponse<MealReviewsResponse> getMealReviews(
@Parameter(description = "mealId")
@RequestParam(value = "mealId") Long mealId) {
@PathVariable(value = "mealId") Long mealId) {
return BaseResponse.success(reviewService.findMealReviews(mealId));
}

Expand All @@ -161,7 +161,7 @@ public BaseResponse<MealReviewsResponse> getMealReviews(
@GetMapping("/menus/{menuId}")
public BaseResponse<MainReviewsResponse> getMainReviews(
@Parameter(description = "menuId")
@RequestParam(value = "menuId") Long menuId) {
@PathVariable(value = "menuId") Long menuId) {
return BaseResponse.success(reviewService.findMenuReviews(menuId));
}

Expand Down

0 comments on commit 9d719de

Please sign in to comment.