From b590d88600622f20aefeacb00b6ffd58cc553e1a Mon Sep 17 00:00:00 2001 From: fromitive <46563149+fromitive@users.noreply.github.com> Date: Mon, 19 Aug 2024 18:27:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20API=20=EB=AC=B8=EC=84=9C=EC=97=90=20?= =?UTF-8?q?=EC=A0=91=EA=B7=BC=ED=95=A0=20=EC=88=98=20=EC=97=86=EB=8A=94=20?= =?UTF-8?q?=ED=98=84=EC=83=81=20=ED=95=B4=EA=B2=B0=20(#384)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: API 문서에 접근할 수 없는 현상 해결 * style: 신뢰할 수 있는 URL 개행 수정 --- .../com/zzang/chongdae/auth/config/AuthWebMvcConfig.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/backend/src/main/java/com/zzang/chongdae/auth/config/AuthWebMvcConfig.java b/backend/src/main/java/com/zzang/chongdae/auth/config/AuthWebMvcConfig.java index b50b2e8e8..812963d6a 100644 --- a/backend/src/main/java/com/zzang/chongdae/auth/config/AuthWebMvcConfig.java +++ b/backend/src/main/java/com/zzang/chongdae/auth/config/AuthWebMvcConfig.java @@ -27,6 +27,13 @@ public void addArgumentResolvers(List resolvers) public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(new AuthorizationInterceptor(cookieConsumer, jwtTokenProvider)) .addPathPatterns("/**") - .excludePathPatterns("/auth/login", "/auth/signup"); + .excludePathPatterns( + "/auth/login", + "/auth/signup", + "/swagger-ui/**", + "/swagger-ui.html", + "/v3/api-docs/swagger-config", + "/static/swagger-ui/openapi3.yaml" + ); } }