diff --git a/nonsoolmateServer/src/main/java/com/nonsoolmate/nonsoolmateServer/domain/universityExamRecord/service/UniversityExamRecordSheetService.java b/nonsoolmateServer/src/main/java/com/nonsoolmate/nonsoolmateServer/domain/universityExamRecord/service/UniversityExamRecordSheetService.java index 8592fae..4b84266 100644 --- a/nonsoolmateServer/src/main/java/com/nonsoolmate/nonsoolmateServer/domain/universityExamRecord/service/UniversityExamRecordSheetService.java +++ b/nonsoolmateServer/src/main/java/com/nonsoolmate/nonsoolmateServer/domain/universityExamRecord/service/UniversityExamRecordSheetService.java @@ -2,7 +2,7 @@ import static com.nonsoolmate.nonsoolmateServer.external.aws.FolderName.EXAM_SHEET_FOLDER_NAME; -import com.nonsoolmate.nonsoolmateServer.external.aws.service.S3Service; +import com.nonsoolmate.nonsoolmateServer.external.aws.service.CloudFrontService; import com.nonsoolmate.nonsoolmateServer.external.aws.service.vo.PreSignedUrlVO; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; @@ -12,10 +12,10 @@ @Transactional(readOnly = true) @RequiredArgsConstructor public class UniversityExamRecordSheetService { - private final S3Service s3Service; + private final CloudFrontService cloudFrontService; public PreSignedUrlVO getUniversityExamRecordSheetPreSignedUrl() { - return s3Service.getUploadPreSignedUrl(EXAM_SHEET_FOLDER_NAME); + return cloudFrontService.createPreSignedPutUrl(EXAM_SHEET_FOLDER_NAME); } }