Skip to content

Commit

Permalink
fix : 검색 모두 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
mmihye committed Jun 10, 2024
1 parent bfb04bf commit 8ebb1a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public ApiResponse<?> updatePlaceMyReview(
placeService.updateMyPlaceReview(principalDetails.getMember(),updateReviewDto,addImages,reviewId);
return ApiResponse.success(Success.UPDATE_MY_PLACE_REVIEW_SUCCESS);
}
@GetMapping("/search/list")
public ApiResponse<SearchPlaceRes> searchPlaceList(@AuthenticationPrincipal PrincipalDetails principalDetails,
@GetMapping("/search")
public ApiResponse<SearchPlaceRes> searchPlaceList(
@RequestParam @NotNull String category,
@RequestParam @NotNull String query,
@RequestParam(required = false) Double minX,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers("/v1/place/main").permitAll()
.requestMatchers("v1/place/review/{placeReviewId}").permitAll()
.requestMatchers("/v1/plan/guest/**").permitAll()
.requestMatchers("/v1/place/search").permitAll()
// 메인 페이지, 공고 페이지 등에 한해 인증 정보 없이 접근 가능 (추후 추가)
// 이외의 모든 요청은 인증 정보 필요
.anyRequest().authenticated());
Expand Down

0 comments on commit 8ebb1a4

Please sign in to comment.