Skip to content

Commit

Permalink
Fix: 이미지 추출 API 시큐리티 해제
Browse files Browse the repository at this point in the history
  • Loading branch information
tioon committed May 23, 2024
1 parent 1d1a795 commit d0f0dcd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Map<String, String>> getFile(@RequestParam String url) throws IOException{
InputStream inputStream = s3ImageStorageService.getFileData(url);
byte[] bytes = inputStream.readAllBytes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/**",
Expand Down

0 comments on commit d0f0dcd

Please sign in to comment.