Skip to content

Commit

Permalink
fix: 팀 등록 문제 발생에 따른 S3 설정 rollback & 학습자료 등록 형태 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
JJimini committed Nov 6, 2024
1 parent 8e568f0 commit 51ffc06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/doore/config/S3Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public AmazonS3Client amazonS3Client() {

return (AmazonS3Client) AmazonS3ClientBuilder
.standard()
.withRegion(Regions.US_EAST_2)
.withRegion(Regions.AP_NORTHEAST_2)
.withCredentials(new AWSStaticCredentialsProvider(credentials))
.build();
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/doore/document/api/DocumentController.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.DeleteMapping;
Expand All @@ -38,7 +39,8 @@ public class DocumentController {
private final DocumentCommandService documentCommandService;
private final DocumentQueryService documentQueryService;

@PostMapping("/{groupType}/{groupId}/documents") // 회원
@PostMapping(value = "/{groupType}/{groupId}/documents", consumes = {MediaType.APPLICATION_JSON_VALUE,
MediaType.MULTIPART_FORM_DATA_VALUE}) // 회원
public ResponseEntity<Void> createDocument(@Valid @RequestPart final DocumentCreateRequest request,
@RequestPart(required = false) final List<MultipartFile> files,
@PathVariable final String groupType,
Expand Down

0 comments on commit 51ffc06

Please sign in to comment.