Skip to content

Commit

Permalink
feat: 이미지 이주 api 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hectick committed Oct 31, 2023
1 parent 9644663 commit 7aacd0d
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 187 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package edonymyeon.backend.image.ui;

import edonymyeon.backend.image.domain.ImageExtension;
import edonymyeon.backend.image.application.ImageMigrationService;
import edonymyeon.backend.image.application.ImageService;
import java.net.MalformedURLException;
import lombok.RequiredArgsConstructor;
Expand All @@ -17,7 +16,6 @@
public class ImageController {

private final ImageService imageService;
private final ImageMigrationService imageMigrationService;

@GetMapping("/images/{fileName}")
public ResponseEntity<Resource> loadImage(@PathVariable String fileName) throws MalformedURLException {
Expand All @@ -27,11 +25,4 @@ public ResponseEntity<Resource> loadImage(@PathVariable String fileName) throws
.contentType(ImageExtension.findMediaType(fileName))
.body(urlResource);
}

// todo: 이미지 migration 되면 없어질 예정
@GetMapping("/image-migration")
public ResponseEntity<Void> migrateImages() {
imageMigrationService.migrate();
return ResponseEntity.ok().build();
}
}

0 comments on commit 7aacd0d

Please sign in to comment.