Skip to content

Commit

Permalink
[HOTFIX] s3 PresignedUrl HTTP Method 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Chan531 committed Jul 13, 2024
1 parent fd04e4b commit ffa6f43
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import static com.tiki.server.external.message.SuccessMessage.PRESIGNED_URL_GET_SUCCESS;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
Expand All @@ -19,14 +19,14 @@
import lombok.val;

@RestController
@RequestMapping("api/v1/file")
@RequiredArgsConstructor
@RequestMapping("api/v1/file")
public class S3Controller implements S3ControllerDocs {

private final S3Service s3Service;

@Override
@GetMapping("/upload")
@PostMapping("/upload")
public ResponseEntity<SuccessResponse<PreSignedUrlResponse>> getPreSignedUrl(@RequestBody PreSignedUrlRequest request) {
val response = s3Service.getUploadPreSignedUrl(request);
return ResponseEntity.ok(success(PRESIGNED_URL_GET_SUCCESS.getMessage(), response));
Expand Down

0 comments on commit ffa6f43

Please sign in to comment.