From ffa6f435810d20d914fce1184cd467ac87e430df Mon Sep 17 00:00:00 2001 From: Chan531 Date: Sat, 13 Jul 2024 17:34:49 +0900 Subject: [PATCH] =?UTF-8?q?[HOTFIX]=20s3=20PresignedUrl=20HTTP=20Method=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/tiki/server/external/controller/S3Controller.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/tiki/server/external/controller/S3Controller.java b/src/main/java/com/tiki/server/external/controller/S3Controller.java index 48f1f12c..35893e0b 100644 --- a/src/main/java/com/tiki/server/external/controller/S3Controller.java +++ b/src/main/java/com/tiki/server/external/controller/S3Controller.java @@ -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; @@ -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> getPreSignedUrl(@RequestBody PreSignedUrlRequest request) { val response = s3Service.getUploadPreSignedUrl(request); return ResponseEntity.ok(success(PRESIGNED_URL_GET_SUCCESS.getMessage(), response));