diff --git a/src/main/java/cat/udl/eps/softarch/myroutes/config/WebSecurityConfig.java b/src/main/java/cat/udl/eps/softarch/myroutes/config/WebSecurityConfig.java index c570f6c..b00478e 100644 --- a/src/main/java/cat/udl/eps/softarch/myroutes/config/WebSecurityConfig.java +++ b/src/main/java/cat/udl/eps/softarch/myroutes/config/WebSecurityConfig.java @@ -41,9 +41,7 @@ protected SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exce .requestMatchers(HttpMethod.POST, "/users/*").denyAll() .requestMatchers(HttpMethod.POST,"/routes").hasRole(Role.USER.toString()) .requestMatchers(HttpMethod.POST,"/routes/*").denyAll() - .requestMatchers(HttpMethod.POST, "/**/*").authenticated() .requestMatchers(HttpMethod.PUT,"/routeVersions/*").denyAll() - .requestMatchers(HttpMethod.PUT, "/**/*").authenticated() .requestMatchers(HttpMethod.PATCH,"/routeVersions/*").denyAll() .requestMatchers(HttpMethod.PATCH,"/routes/*").hasRole(Role.USER.toString()) .requestMatchers(HttpMethod.DELETE,"/routes/*").hasRole(Role.ADMIN.toString())