Skip to content

Commit

Permalink
Merge pull request #22 from EnjoyTripKorea/refactor1
Browse files Browse the repository at this point in the history
익명사용자도 웹사이트 기능을 이용할 수 있도록 변경
  • Loading branch information
ji-hyeon97 authored May 19, 2024
2 parents 06f4392 + 92ef8ab commit 1bf6ba4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Getter
@NoArgsConstructor
public class NoticeResponseDto {
Expand All @@ -13,6 +11,6 @@ public class NoticeResponseDto {
private String title;
private String content;
private String imgUrl;
private LocalDate createdDate;
private LocalDate modifiedDate;
private String createdDate;
private String modifiedDate;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
import lombok.Getter;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Getter
@NoArgsConstructor
public class PlaceResponseDto {
private Long place_id;
private Long placeId;
private String title;
private String content;
private String placeImageUrl;
private String userEmail;
private LocalDate createdDate;
private String createdDate;
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class LoginCheckFilter implements Filter {

private final ObjectMapper objectMapper;

private static final String[] whitelist = {"/api/signUp", "/api/login", "/api/logout", "/api/place"};
private static final String[] whitelist = {"/api/toss/success"};

@Override
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
Expand Down Expand Up @@ -59,6 +59,6 @@ private void AnonymousUserHandler(HttpServletResponse response, String message)
}

private boolean isLoginCheckPath(String requestURI) {
return !PatternMatchUtils.simpleMatch(whitelist, requestURI);
return PatternMatchUtils.simpleMatch(whitelist, requestURI);
}
}

0 comments on commit 1bf6ba4

Please sign in to comment.