Skip to content

Commit

Permalink
feat: 불필요한 출력문 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Daolove0323 committed Nov 9, 2024
1 parent 8dd84b3 commit aea28fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
import lombok.RequiredArgsConstructor;
import org.ktc2.cokaen.wouldyouin.Image.api.dto.ImageResponse;
import org.ktc2.cokaen.wouldyouin.Image.application.ImageServiceFactory;
import org.ktc2.cokaen.wouldyouin.Image.application.ImageStorage;
import org.ktc2.cokaen.wouldyouin._common.api.ApiResponse;
import org.ktc2.cokaen.wouldyouin._common.api.ApiResponseBody;
import org.ktc2.cokaen.wouldyouin._common.exception.FailToReadImageException;
import org.ktc2.cokaen.wouldyouin.auth.Authorize;
import org.ktc2.cokaen.wouldyouin.auth.MemberIdentifier;
import org.ktc2.cokaen.wouldyouin.member.persist.MemberType;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
Expand Down Expand Up @@ -45,7 +41,7 @@ public ResponseEntity<ApiResponseBody<List<ImageResponse>>> uploadImages(
@GetMapping(value = "{path}", produces = {MediaType.IMAGE_PNG_VALUE, MediaType.IMAGE_JPEG_VALUE})
public ResponseEntity<byte[]> getImage(@PathVariable String path) {
try {
return ResponseEntity.status(HttpStatus.OK).body(Files.readAllBytes(Paths.get("src/main/resources/static", path)));
return ResponseEntity.status(HttpStatus.OK).body(Files.readAllBytes(Paths.get(path)));
} catch (IOException e) {
throw new FailToReadImageException();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public class ImageResponse {
private Long size;

public static ImageResponse from(Image image, String domainName) {
System.out.println("도메인" + domainName);
return ImageResponse.builder()
.id(image.getId())
.url(domainName + image.getUrl())
Expand Down

0 comments on commit aea28fc

Please sign in to comment.