fix
This commit is contained in:
parent
3403ca45df
commit
84d5e0a85d
|
@ -41,13 +41,14 @@ switch (true) {
|
|||
break;
|
||||
|
||||
case preg_match('#^/candidatos#', $normalizedPath):
|
||||
// Temporalmente comentar la validación para probar
|
||||
// require_once __DIR__ . '/../src/OAuth/Middleware/AuthMiddleware.php';
|
||||
// if (\OAuth\Middleware\AuthMiddleware::verifyToken()) {
|
||||
require_once __DIR__ . '/../src/candidatos/index.php';
|
||||
// }
|
||||
break;
|
||||
|
||||
// Verificar token de OAuth 2.0 antes de acceder a rutas protegidas
|
||||
require_once __DIR__ . '/../src/OAuth/Middleware/AuthMiddleware.php';
|
||||
|
||||
// Solo continuamos si el token es válido
|
||||
if (\OAuth\Middleware\AuthMiddleware::verifyToken()) {
|
||||
require_once __DIR__ . '/../src/candidatos/index.php';
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
http_response_code(404);
|
||||
|
|
Loading…
Reference in New Issue