Fix mapper + DTO

This commit is contained in:
DmitriiCravcenco
2023-10-05 19:14:28 +03:00
parent e17eb3deec
commit a6ed3794fe
11 changed files with 51 additions and 18 deletions

View File

@@ -24,6 +24,7 @@ public class SecurityConfiguration {
.csrf(csrf -> csrf.disable())
.authorizeHttpRequests(auth -> auth
.requestMatchers("/api/v1/auth/**").permitAll()
.requestMatchers("/encomes").hasRole("ADMIN")
.anyRequest().authenticated()
)
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))