Skip to content

Commit 3ac4c66

Browse files
authored
Merge pull request #200 from DevKor-github/fix/search
Fix: 검색 시 즐겨찾기 여부 반환 오류 수정
2 parents 15cec23 + c1521fa commit 3ac4c66

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/main/java/devkor/com/teamcback/domain/search/contoller/SearchController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public CommonResponse<SearchMaskIndexByPlaceRes> searchMaskIndexByPlace(
188188
})
189189
@GetMapping("/buildings/{buildingId}")
190190
public CommonResponse<SearchBuildingDetailRes> searchBuildingDetail(
191-
@Parameter(description = "사용자정보", required = false)
191+
@Parameter(description = "사용자정보")
192192
@AuthenticationPrincipal UserDetailsImpl userDetail,
193193
@Parameter(name = "buildingId", description = "건물 id", example = "1", required = true)
194194
@PathVariable Long buildingId) {
@@ -209,7 +209,7 @@ public CommonResponse<SearchBuildingDetailRes> searchBuildingDetail(
209209
})
210210
@GetMapping("/place/{placeId}")
211211
public CommonResponse<SearchPlaceDetailRes> searchPlaceDetail(
212-
@Parameter(description = "사용자정보", required = false)
212+
@Parameter(description = "사용자정보")
213213
@AuthenticationPrincipal UserDetailsImpl userDetail,
214214
@Parameter(name = "placeId", description = "placeId", example = "1", required = true)
215215
@PathVariable Long placeId) {

src/main/java/devkor/com/teamcback/global/jwt/JwtAuthorizationFilter.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ public class JwtAuthorizationFilter extends OncePerRequestFilter {
3434
new AntPathRequestMatcher("/api/migration"),
3535
new AntPathRequestMatcher("/api/koyeon/**"),
3636
new AntPathRequestMatcher("/api/routes/**"),
37-
new AntPathRequestMatcher("/api/search/**", HttpMethod.GET.name()),
37+
new AntPathRequestMatcher("/api/search", HttpMethod.GET.name()),
38+
new AntPathRequestMatcher("/api/search/buildings", HttpMethod.GET.name()),
39+
new AntPathRequestMatcher("/api/search/buildings/**/facilities/**", HttpMethod.GET.name()),
40+
new AntPathRequestMatcher("/api/search/buildings/**/floor/**", HttpMethod.GET.name()),
41+
new AntPathRequestMatcher("/api/search/facilities", HttpMethod.GET.name()),
42+
new AntPathRequestMatcher("/api/search/place/**/mask", HttpMethod.GET.name()),
3843
new AntPathRequestMatcher("/api/users/login/**"));
3944

4045
private final JwtUtil jwtUtil;

0 commit comments

Comments
 (0)