Skip to content

Commit 52e79cb

Browse files
committed
chore: add ws to perm
1 parent d1ca26f commit 52e79cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/src/main/java/org/heymouad/focusapp/config/SecurityConfig.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
3434
.cors(Customizer.withDefaults())
3535
.csrf(AbstractHttpConfigurer::disable)
3636
.authorizeHttpRequests(auth -> auth
37-
.requestMatchers("/swagger-ui/**", "/v3/api-docs*/**", "/api/v1/auth/**").permitAll()
37+
.requestMatchers("/swagger-ui/**", "/v3/api-docs*/**", "/api/v1/auth/**", "/ws/**").permitAll()
38+
.requestMatchers("/api/dashboard/**").hasRole("USER")
3839
.requestMatchers("/api/getHabits").hasRole("USER")
3940
.requestMatchers("/api/addHabit").hasRole("USER")
4041
.requestMatchers("/api/categories").hasRole("USER")

0 commit comments

Comments
 (0)