fix
This commit is contained in:
parent
33538c22d7
commit
cd9dc3c83e
|
@ -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_candidatos';
|
$basePath = '/api';
|
||||||
$normalizedPath = str_replace($basePath, '', $path);
|
$normalizedPath = str_replace($basePath, '', $path);
|
||||||
|
|
||||||
// Enrutamiento
|
// Enrutamiento
|
||||||
|
|
Loading…
Reference in New Issue