changes: api/usuarios/registrar para que admita solo un rol y los roles esten en la base de datos
This commit is contained in:
@@ -43,6 +43,7 @@ public class SecurityConfig {
|
||||
.requestMatchers("/ws/**").permitAll() // WebSocket
|
||||
.requestMatchers("/auth/**").permitAll()
|
||||
.requestMatchers("/favicon.ico", "/error", "/static/**", "/contador/**", "/api/**").permitAll()
|
||||
.requestMatchers("/admin/**").hasRole("ADMIN")
|
||||
.anyRequest().authenticated()
|
||||
)
|
||||
.httpBasic(Customizer.withDefaults());
|
||||
|
||||
Reference in New Issue
Block a user