Skip to content

Commit

Permalink
fix: HTTP 메서드 매핑 방식 수정 #34
Browse files Browse the repository at this point in the history
  • Loading branch information
PgmJun committed Jan 31, 2024
1 parent 4526bf8 commit 928b5ec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public ApiResponse<?> addPetInfo(@MemberId final Long memberId, @RequestBody fin
@Auth
@ResponseStatus(HttpStatus.OK)
@Operation(summary = "[인증] 반려동물 이미지 저장용 S3 PreSignedURL 요청")
@GetMapping("/pet/images/presigned-url")
@PostMapping("/pet/images/presigned-url")
public ApiResponse<CreatePetImagesUploadUrlsResponse> createPreSignedUrlForSavePetImages(
@MemberId final Long memberId, @RequestBody @Valid final CreatePetImagesUploadUrlsRequest request) {
return ApiResponse.success(petQueryService.createPreSignedUrlForSavePetImages(memberId, request));
Expand All @@ -68,7 +68,7 @@ public ApiResponse<CreatePetImagesUploadUrlsResponse> createPreSignedUrlForSaveP
@Auth
@ResponseStatus(HttpStatus.OK)
@Operation(summary = "[인증] 반려동물 이미지 삭제 요청")
@GetMapping("/pet/images/delete")
@DeleteMapping("/pet/images/delete")
public ApiResponse<?> deletePetImagesOnS3(@RequestBody @Valid final DeletePetImagesRequest request) {
petQueryService.deletePetImagesOnS3(request);
return ApiResponse.success();
Expand Down

0 comments on commit 928b5ec

Please sign in to comment.