Skip to content

Commit

Permalink
Merge pull request #80 from mash-up-kr/yaeoni/health
Browse files Browse the repository at this point in the history
필터 제외 path에 health 추가하기
  • Loading branch information
yaeoni authored Aug 9, 2024
2 parents 93caae0 + bf0b6cc commit c64bf6a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ class MemberAuthTokenAuthenticationFilter(
) {
try {
// Todo Path 분리 밖에서 할 수 있도록 변경하기
// path가 public 으로 시작하면 패스
val isPublicPath = request.servletPath.startsWith("/public") || request.servletPath.startsWith("/swagger") || request.servletPath.startsWith("/v3/api-docs")
val isPublicPath =
request.servletPath.startsWith("/public") ||
request.servletPath.startsWith("/swagger") ||
request.servletPath.startsWith("/v3/api-docs") ||
request.servletPath.startsWith("/health")

if (isPublicPath) {
filterChain.doFilter(request, response)
} else {
Expand Down

0 comments on commit c64bf6a

Please sign in to comment.