Skip to content

Commit 4a4083f

Browse files
feat: update dashboard.html
also makes the get genres endpoins been acessable by anyone
1 parent cec6922 commit 4a4083f

2 files changed

Lines changed: 266 additions & 150 deletions

File tree

src/main/java/com/vianavitor/simplelibrarygame/config/SecurityConfig.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
7373

7474
// * Groups/Group-Books permissions
7575
.requestMatchers("/api/groups/**", "/api/group-books/**").hasRole("STUDENT")
76+
// * Genre permissions
77+
.requestMatchers(HttpMethod.GET, "/api/genres").permitAll()
7678
.anyRequest().authenticated()
7779
)
7880
.addFilterBefore(securityFilter, UsernamePasswordAuthenticationFilter.class)

0 commit comments

Comments
 (0)