diff --git a/src/main/java/com/seoultech/sanEseo/global/config/jwt/JwtAuthenticationFilter.java b/src/main/java/com/seoultech/sanEseo/global/config/jwt/JwtAuthenticationFilter.java index a5ba43d..043edc5 100644 --- a/src/main/java/com/seoultech/sanEseo/global/config/jwt/JwtAuthenticationFilter.java +++ b/src/main/java/com/seoultech/sanEseo/global/config/jwt/JwtAuthenticationFilter.java @@ -51,9 +51,8 @@ protected boolean shouldNotFilter(HttpServletRequest request) { skipPathList.add(new AntPathRequestMatcher("/api/auth/token/refresh", HttpMethod.POST.name())); skipPathList.add(new AntPathRequestMatcher("/api/oauth/kakao", HttpMethod.GET.name())); skipPathList.add(new AntPathRequestMatcher("/api/weather", HttpMethod.GET.name())); - skipPathList.add(new AntPathRequestMatcher("/api/posts", HttpMethod.POST.name())); - skipPathList.add(new AntPathRequestMatcher("/api/posts", HttpMethod.PUT.name())); - skipPathList.add(new AntPathRequestMatcher("/api/posts", HttpMethod.DELETE.name())); + + skipPathList.add(new AntPathRequestMatcher("/api/posts", HttpMethod.GET.name())); skipPathList.add(new AntPathRequestMatcher("/api/posts/*/likes", HttpMethod.GET.name())); skipPathList.add(new AntPathRequestMatcher("/api/posts/*/reviews", HttpMethod.GET.name()));