Skip to content

Commit 9e14cbc

Browse files
authored
Update SecurityConfig.java
1 parent 89523ff commit 9e14cbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/subproblem/fitnesstrackingapp/config/SecurityConfig.java

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
3333
.csrf(csrf -> csrf.disable())
3434
.authorizeHttpRequests(auth ->
3535
auth.requestMatchers("/api/v1/auth/**").permitAll()
36+
.requestMatchers("/api/v1/test).permitAll()
3637
3738
.requestMatchers("/api/v1/secured/user/**").hasAnyRole(USER.name())
3839
.requestMatchers(HttpMethod.GET, "/api/v1/secured/user/**").hasAuthority(USER_READ.name())

0 commit comments

Comments
 (0)