Skip to content

Commit f806df4

Browse files
authored
refactor/#197 게시글 조회 시 미리보기 글자 수 조정 (#198)
* refactor: post 미리보기 글자 수 80자로 조정 * refactor: public endpoint에 carousel 추가
1 parent 2f743a5 commit f806df4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

aics-api/src/main/java/kgu/developers/api/post/presentation/response/PostSummaryResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static PostSummaryResponse from(Post post) {
4343
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
4444

4545
String content = post.getContent();
46-
String description = content.length() > 30 ? content.substring(0, 30) : content;
46+
String description = content.length() > 80 ? content.substring(0, 80) : content;
4747

4848
return PostSummaryResponse.builder()
4949
.postId(post.getId())

aics-common/src/main/java/kgu/developers/common/config/SecurityConfig.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
8282
"/api/v1/posts/**",
8383
"/api/v1/labs",
8484
"/api/v1/comments",
85+
"/api/v1/carousels",
8586
};
8687

8788
CorsConfigurationSource corsConfigurationSource() {

0 commit comments

Comments
 (0)