From 8ebb1a4f119fe1818eea3c58e52e5c47e9e0e472 Mon Sep 17 00:00:00 2001 From: mmihye Date: Tue, 11 Jun 2024 04:12:50 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=EA=B2=80=EC=83=89=20=EB=AA=A8?= =?UTF-8?q?=EB=91=90=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Together/domain/place/controller/PlaceController.java | 4 ++-- .../java/Journey/Together/global/config/SecurityConfig.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/Journey/Together/domain/place/controller/PlaceController.java b/src/main/java/Journey/Together/domain/place/controller/PlaceController.java index bb33e4c..51bca4a 100644 --- a/src/main/java/Journey/Together/domain/place/controller/PlaceController.java +++ b/src/main/java/Journey/Together/domain/place/controller/PlaceController.java @@ -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 searchPlaceList(@AuthenticationPrincipal PrincipalDetails principalDetails, + @GetMapping("/search") + public ApiResponse searchPlaceList( @RequestParam @NotNull String category, @RequestParam @NotNull String query, @RequestParam(required = false) Double minX, diff --git a/src/main/java/Journey/Together/global/config/SecurityConfig.java b/src/main/java/Journey/Together/global/config/SecurityConfig.java index 8eb51d8..152a2f6 100644 --- a/src/main/java/Journey/Together/global/config/SecurityConfig.java +++ b/src/main/java/Journey/Together/global/config/SecurityConfig.java @@ -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());