diff --git a/src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java b/src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java index 7f8b3ab2..7c86430d 100644 --- a/src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java +++ b/src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java @@ -188,7 +188,7 @@ public CommonResponse searchMaskIndexByPlace( }) @GetMapping("/buildings/{buildingId}") public CommonResponse searchBuildingDetail( - @Parameter(description = "사용자정보", required = false) + @Parameter(description = "사용자정보") @AuthenticationPrincipal UserDetailsImpl userDetail, @Parameter(name = "buildingId", description = "건물 id", example = "1", required = true) @PathVariable Long buildingId) { @@ -209,7 +209,7 @@ public CommonResponse searchBuildingDetail( }) @GetMapping("/place/{placeId}") public CommonResponse searchPlaceDetail( - @Parameter(description = "사용자정보", required = false) + @Parameter(description = "사용자정보") @AuthenticationPrincipal UserDetailsImpl userDetail, @Parameter(name = "placeId", description = "placeId", example = "1", required = true) @PathVariable Long placeId) { diff --git a/src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java b/src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java index e8b35638..c85697cc 100644 --- a/src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java +++ b/src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java @@ -34,7 +34,12 @@ public class JwtAuthorizationFilter extends OncePerRequestFilter { new AntPathRequestMatcher("/api/migration"), new AntPathRequestMatcher("/api/koyeon/**"), new AntPathRequestMatcher("/api/routes/**"), - new AntPathRequestMatcher("/api/search/**", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/buildings", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/buildings/**/facilities/**", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/buildings/**/floor/**", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/facilities", HttpMethod.GET.name()), + new AntPathRequestMatcher("/api/search/place/**/mask", HttpMethod.GET.name()), new AntPathRequestMatcher("/api/users/login/**")); private final JwtUtil jwtUtil;