This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Testing de Ripple</title> | |
<link href="src/styles.css" /> | |
<meta charset="UTF-8" /> | |
</head> | |
<body> | |
<div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Anotación para indicar que esta clase es un servicio de Spring | |
@Service | |
public class AccessControlService { | |
// Inyección de dependencias de Spring para obtener una instancia de EndpointAccessRepository | |
@Autowired | |
private EndpointAccessRepository repository; | |
// Método para verificar si se puede acceder a un endpoint específico | |
public boolean canAccess(String endpoint) { |