Skip to content

Commit

Permalink
Merge pull request #87 from fourix4/feat/chat
Browse files Browse the repository at this point in the history
리프레시 토큰 발급 uri 필터 추가, 검색 결과 content만 반환 변경
  • Loading branch information
TaeHoon0 authored Jul 23, 2024
2 parents 6c52f3c + d7c9b41 commit 560189f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public Response searchStudyCafes(@RequestParam(required = false) String city,
@RequestParam(required = false) String town,
@RequestParam(defaultValue = "1") int page) {

return Response.success(Result.toResponseDto((studyCafeService.searchStudyCafes(city, country, town, page))));
return Response.success(Result.toResponseDto((studyCafeService.searchStudyCafes(city, country, town, page)).getContent()));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ public class JwtAuthenticationFilter extends OncePerRequestFilter {
protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {

String accessToken = resolveToken(request);
String uri = request.getRequestURI();

if (uri.equals("/api/users/reissuance")) {
filterChain.doFilter(request, response);
return;
}

if(accessToken == null) {
filterChain.doFilter(request, response);
Expand Down

0 comments on commit 560189f

Please sign in to comment.