Skip to content

Commit

Permalink
feat: content type 추가 (#62)
Browse files Browse the repository at this point in the history
* feat: 검색 기능 확장

* fix: nginx maxfilesize 변경

* feat: content type 반환
  • Loading branch information
Martin0o0 authored Nov 20, 2023
1 parent eb16eb0 commit f3d8e09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ services:
image: redis
ports:
- 6379:6379
networks:
- reverseproxy
khumon:
container_name: khumon
image: chy0310/khumon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class LearningMaterialContent {
private Long id;
private String title;
private String content;
private String type;
private LocalDateTime createAt;
private LocalDateTime modifiedAt;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ public ResponseEntity<?> getLearningMaterials(Principal principal, Pageable page
.id(learningMaterial.getId())
.title(learningMaterial.getTitle())
.content(learningMaterial.getContent())
.type(learningMaterial.getMediaFileType().getFileType())
.createAt(learningMaterial.getCreatedAt())
.modifiedAt(learningMaterial.getUpdateAt())
.build()).toList();
Expand Down

0 comments on commit f3d8e09

Please sign in to comment.