fix: base_path

This commit is contained in:
christian.julian 2025-06-15 15:02:03 -06:00
parent 23fcbb33ae
commit 33538c22d7
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ $path = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);
$method = $_SERVER['REQUEST_METHOD']; $method = $_SERVER['REQUEST_METHOD'];
// Quitar el prefijo '/api' para trabajar con rutas limpias // Quitar el prefijo '/api' para trabajar con rutas limpias
$basePath = '/api'; $basePath = '/api_candidatos';
$normalizedPath = str_replace($basePath, '', $path); $normalizedPath = str_replace($basePath, '', $path);
// Enrutamiento // Enrutamiento