We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89523ff commit 9e14cbcCopy full SHA for 9e14cbc
src/main/java/com/subproblem/fitnesstrackingapp/config/SecurityConfig.java
@@ -33,6 +33,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
33
.csrf(csrf -> csrf.disable())
34
.authorizeHttpRequests(auth ->
35
auth.requestMatchers("/api/v1/auth/**").permitAll()
36
+ .requestMatchers("/api/v1/test).permitAll()
37
38
.requestMatchers("/api/v1/secured/user/**").hasAnyRole(USER.name())
39
.requestMatchers(HttpMethod.GET, "/api/v1/secured/user/**").hasAuthority(USER_READ.name())
0 commit comments