This commit is contained in:
christian.julian 2025-06-15 15:45:29 -06:00
parent 8b417500b4
commit 1b6e76cd46
1 changed files with 13 additions and 1 deletions

View File

@ -24,7 +24,19 @@ $normalizedPath = str_replace($basePath, '', $path);
// Enrutamiento // Enrutamiento
switch (true) { switch (true) {
case preg_match('#^/oauth/token#', $normalizedPath): case preg_match('#^/oauth/token#', $normalizedPath):
require_once __DIR__ . '/../src/Oauth/Routes/AuthRoutes.php'; $authPath = __DIR__ . '/../src/Oauth/Routes/AuthRoutes.php';
if (file_exists($authPath)) {
require_once $authPath;
} else {
http_response_code(500);
echo json_encode([
'error' => 'Archivo AuthRoutes.php no encontrado',
'ruta_buscada' => $authPath
]);
exit;
}
// /../src/candidatos/index.php // /../src/candidatos/index.php
break; break;