diff --git a/src/main/java/kr/inuappcenterportal/inuportal/config/SecurityConfig.java b/src/main/java/kr/inuappcenterportal/inuportal/config/SecurityConfig.java index e9459d9..509ae19 100644 --- a/src/main/java/kr/inuappcenterportal/inuportal/config/SecurityConfig.java +++ b/src/main/java/kr/inuappcenterportal/inuportal/config/SecurityConfig.java @@ -41,8 +41,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws .requestMatchers(HttpMethod.GET,"/api/posts/**","/api/posts","/api/cafeterias","/api/weathers").permitAll() .requestMatchers("/api/posts/**","/api/posts","/api/fires/**").hasAnyRole("USER","ADMIN") .requestMatchers("/api/replies/**").hasAnyRole("USER","ADMIN") - .requestMatchers("/api/search","/api/search/**","/api/notices","/api/notices/**","api/schedules","api/schedules/**").permitAll() - .requestMatchers("/api/folders/**","/api/folders").hasAnyRole("USER","ADMIN") + .requestMatchers("/api/search","/api/notices","/api/notices/**","api/schedules","api/schedules/**").permitAll() + .requestMatchers("/api/folders/**","/api/folders","/api/search/**").hasAnyRole("USER","ADMIN") .requestMatchers(HttpMethod.GET,"/api/categories","/api/images/**").permitAll() .requestMatchers("/api/images","/api/images/**","/api/categories").hasRole("ADMIN")); httpSecurity