Skip to content

Commit

Permalink
[#487] fix: 스웨거 접속 권한 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
heeeeeseok committed Oct 31, 2024
1 parent 5a898af commit 5ea48f3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http,

http
.authorizeHttpRequests(authHttpRequests -> authHttpRequests
.requestMatchers("/swagger-ui/**", "/v3/api-docs/**", "/favicon.ico",
.requestMatchers("/v3/api-docs/**", "/favicon.ico",
"/member/join", "/member/login", "/member/reissue", "/share/**",
"member/forceWithdrawal", "nana/upload", "/admin/login", "/member/validateNickname",
"/version/**", "/actuator/health")
Expand All @@ -56,7 +56,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http,
.hasAnyRole("MEMBER", "ADMIN")
.requestMatchers(HttpMethod.POST, "/nana/upload")
.permitAll()
.requestMatchers("/notification/send/*")
.requestMatchers("/swagger-ui/**", "/notification/send/*")
.hasRole("ADMIN")
// admin 페이지
.requestMatchers(HttpMethod.GET, "/admin/**")
Expand Down

0 comments on commit 5ea48f3

Please sign in to comment.