fix
This commit is contained in:
parent
8b417500b4
commit
1b6e76cd46
|
@ -24,7 +24,19 @@ $normalizedPath = str_replace($basePath, '', $path);
|
|||
// Enrutamiento
|
||||
switch (true) {
|
||||
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
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue