Integra panel admin en seguridad y corrige carga de usuarios con JWT2
Some checks failed
Deploy Spring Boot App / build-and-deploy (push) Has been cancelled

This commit is contained in:
unknown
2026-05-21 15:28:50 -04:00
parent 2f70cc687a
commit be48853e0e
5 changed files with 41 additions and 3 deletions

View File

@@ -49,6 +49,7 @@ public class SecurityConfig {
.requestMatchers(HttpMethod.POST, "/api/usuarios/registrar").permitAll()
.requestMatchers("/api/usuarios/**").permitAll()
.requestMatchers("/favicon.ico", "/error", "/static/**", "/contador/**").permitAll()
.requestMatchers("/panel", "/panel/**").permitAll()
.requestMatchers("/admin/**").hasAuthority("ADMIN")
.anyRequest().authenticated()
)