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 @@ -188,7 +188,7 @@ public CommonResponse<SearchMaskIndexByPlaceRes> searchMaskIndexByPlace(
})
@GetMapping("/buildings/{buildingId}")
public CommonResponse<SearchBuildingDetailRes> searchBuildingDetail(
@Parameter(description = "사용자정보", required = false)
@Parameter(description = "사용자정보")
@AuthenticationPrincipal UserDetailsImpl userDetail,
@Parameter(name = "buildingId", description = "건물 id", example = "1", required = true)
@PathVariable Long buildingId) {
Expand All @@ -209,7 +209,7 @@ public CommonResponse<SearchBuildingDetailRes> searchBuildingDetail(
})
@GetMapping("/place/{placeId}")
public CommonResponse<SearchPlaceDetailRes> searchPlaceDetail(
@Parameter(description = "사용자정보", required = false)
@Parameter(description = "사용자정보")
@AuthenticationPrincipal UserDetailsImpl userDetail,
@Parameter(name = "placeId", description = "placeId", example = "1", required = true)
@PathVariable Long placeId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down