Skip to content

Commit

Permalink
[Fix] RequestParam -> PathVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
choeun7 committed Mar 22, 2024
1 parent 8825127 commit 554624c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public ResponseEntity<CommonDto> findImageByStoreId(
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> findImageByGuestBookId(
@CurrentUser HttpServletRequest request,
@RequestParam Long guestBookId
@PathVariable Long guestBookId
) {
return ResponseEntity.ok(imageService.findImageByGuestBookId(request, guestBookId));
}
Expand All @@ -128,7 +128,7 @@ public ResponseEntity<CommonDto> findImageByGuestBookId(
@DeleteMapping(value = "/spot/{spotId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> deleteImageBySpotId(
@RequestParam Long spotId
@PathVariable Long spotId
) {
return ResponseEntity.ok(imageService.deleteImageBySpotId(spotId));
}
Expand All @@ -141,7 +141,7 @@ public ResponseEntity<CommonDto> deleteImageBySpotId(
@DeleteMapping(value = "/store/{storeId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> deleteImageByStoreId(
@RequestParam Long storeId
@PathVariable Long storeId
) {
return ResponseEntity.ok(imageService.deleteImageByStoreId(storeId));
}
Expand All @@ -154,7 +154,7 @@ public ResponseEntity<CommonDto> deleteImageByStoreId(
@DeleteMapping(value = "/guestbook/{guestBookId}")
// @ResponseStatus(value = HttpStatus.OK)
public ResponseEntity<CommonDto> deleteImageByGuestBookId(
@RequestParam Long guestBookId
@PathVariable Long guestBookId
) {
return ResponseEntity.ok(imageService.deleteImageByGuestBookId(guestBookId));
}
Expand Down

0 comments on commit 554624c

Please sign in to comment.