Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public ResponseEntity<ApiResponse<MyFeedbackStatusResponse>> getMyFeedbackStatus
@AuthenticationPrincipal CustomUserDetails userDetails
) {
if (userDetails == null) {
throw new GeneralException(ErrorStatus.UNAUTHORIZED);
MyFeedbackStatusResponse response = MyFeedbackStatusResponse.notStarted(null);
return ResponseEntity.ok(ApiResponse.onSuccess(response));
}

MyFeedbackStatusResponse response = feedbackService.getMyFeedbackStatus(postId, userDetails.getUserId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ ResponseEntity<ApiResponse<PresignedUrlResponse>> generatePresignedUrl(

@Operation(
summary = "내 피드백 상태 조회",
description = "특정 프로젝트에 대한 내 피드백 상태를 조회합니다.",
security = @SecurityRequirement(name = "Bearer Authentication")
description = "특정 프로젝트에 대한 내 피드백 상태를 조회합니다. 비로그인 시에는 미작성 상태로 반환합니다."
)
ResponseEntity<ApiResponse<MyFeedbackStatusResponse>> getMyFeedbackStatus(
@Parameter(description = "프로젝트(게시글) ID") @RequestParam Long postId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers("/api/v1/posts/**").permitAll()
.requestMatchers("/api/v1/ranking/**").permitAll()
.requestMatchers("/v1/users/posts/list").permitAll()
.requestMatchers("/v1/feedbacks/my-status").permitAll()
.requestMatchers("/actuator/**").permitAll()
.anyRequest().authenticated()
)
Expand Down