From d0f0dcd6a642fa10bea14a07e975f1cd6f4f4f27 Mon Sep 17 00:00:00 2001 From: kimyechan Date: Thu, 23 May 2024 14:18:13 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=B6=94?= =?UTF-8?q?=EC=B6=9C=20API=20=EC=8B=9C=ED=81=90=EB=A6=AC=ED=8B=B0=20?= =?UTF-8?q?=ED=95=B4=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/web/baebaeBE/domain/other/OtherController.java | 8 +------- .../web/baebaeBE/global/security/SecurityConstants.java | 1 + 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/baebae-BE/src/main/java/com/web/baebaeBE/domain/other/OtherController.java b/baebae-BE/src/main/java/com/web/baebaeBE/domain/other/OtherController.java index e9a4bca7..50e7903b 100644 --- a/baebae-BE/src/main/java/com/web/baebaeBE/domain/other/OtherController.java +++ b/baebae-BE/src/main/java/com/web/baebaeBE/domain/other/OtherController.java @@ -53,14 +53,8 @@ public void test(HttpServletRequest request) { @GetMapping("/api/image") @Operation( summary = "이미지 추출 API", - description = "S3에 저장된 이미지를 추출합니다.", - security = @SecurityRequirement(name = "bearerAuth") + description = "S3에 저장된 이미지를 추출합니다." ) - @Parameter( - in = ParameterIn.HEADER, - name = "Authorization", required = true, - schema = @Schema(type = "string"), - description = "Bearer [Access 토큰]") public ResponseEntity> getFile(@RequestParam String url) throws IOException{ InputStream inputStream = s3ImageStorageService.getFileData(url); byte[] bytes = inputStream.readAllBytes(); diff --git a/baebae-BE/src/main/java/com/web/baebaeBE/global/security/SecurityConstants.java b/baebae-BE/src/main/java/com/web/baebaeBE/global/security/SecurityConstants.java index d887f49d..2c87f11e 100644 --- a/baebae-BE/src/main/java/com/web/baebaeBE/global/security/SecurityConstants.java +++ b/baebae-BE/src/main/java/com/web/baebaeBE/global/security/SecurityConstants.java @@ -7,6 +7,7 @@ public final class SecurityConstants { "/api/oauth/kakao", "/favicon.ico", "/oauth/kakao/callback", "/api/auth/login", "/api/auth/isExisting", "/api/auth/nickname/isExisting", "/api/answers", "/api/answers/member/{memberId}", + "/api/image", "/api/reactionsCount/{answerId}/reactionsCount", // Swagger 제외 과정 "/v3/**", "/swagger-ui/**",