Skip to content

Commit

Permalink
[#142] refactor(FileController): castImages, staffImages의 파라미터 value를…
Browse files Browse the repository at this point in the history
… 주지 않아도 presigned-url을 발급하도록 변경 (#143)
  • Loading branch information
hoonyworld authored Jul 18, 2024
1 parent e1823d7 commit 855495e
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@ public class FileController {
@GetMapping("/presigned-url")
public ResponseEntity<Map<String, Map<String, String>>> getPresignedUrls(
@RequestParam String posterImage,
@RequestParam List<String> castImages,
@RequestParam List<String> staffImages) {

@RequestParam(required = false) List<String> castImages,
@RequestParam(required = false) List<String> staffImages) {
if (castImages == null) {
castImages = List.of();
}
if (staffImages == null) {
staffImages = List.of();
}
Map<String, Map<String, String>> response = fileService.getPresignedUrls(posterImage, castImages, staffImages);
return ResponseEntity.ok(response);
}
Expand Down

0 comments on commit 855495e

Please sign in to comment.