diff --git a/backend/src/main/java/com/greenfoxacademy/backend/config/SecurityConfig.java b/backend/src/main/java/com/greenfoxacademy/backend/config/SecurityConfig.java index d0d49302..98aede3d 100644 --- a/backend/src/main/java/com/greenfoxacademy/backend/config/SecurityConfig.java +++ b/backend/src/main/java/com/greenfoxacademy/backend/config/SecurityConfig.java @@ -58,6 +58,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti .authorizeHttpRequests((authorize) -> authorize .requestMatchers(allowedUrls).permitAll() .requestMatchers("/profile-update").authenticated() + .requestMatchers("/pets").authenticated() .anyRequest().authenticated() ) .cors(cors -> cors.configurationSource(corsConfigurationSource()))