Skip to content

Commit

Permalink
feat: 상위 목표, 세부 목표 API JWT 인증 거치도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Mingyum-Kim committed Sep 7, 2023
1 parent 5eb4e19 commit 1454fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/backend/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SecurityConfig {
@Bean
public WebSecurityCustomizer webSecurityCustomizer(){
return web -> web.ignoring()
.requestMatchers("/swagger-ui/**", "/api-docs/**", "/health", "/error");
.requestMatchers("/swagger-ui/**", "/api-docs/**", "/health");
}

@Bean
Expand All @@ -48,7 +48,7 @@ public SecurityFilterChain filterChain(HttpSecurity httpSecurity) throws Excepti
.and()
.authorizeHttpRequests()

.requestMatchers( "/detail-goals/**","/goals/**","/auth/**").permitAll()
.requestMatchers( "/auth/**").permitAll()
.anyRequest().authenticated()

.and()
Expand Down

0 comments on commit 1454fce

Please sign in to comment.