Created
February 7, 2018 22:25
-
-
Save parzibyte/24cde51ac51a93bf1bccb46bc2d3a161 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
try { | |
echo json_encode($despachador->dispatch($metodo, $rutaLimpia)); # Notar el json_encode | |
} catch (HttpRouteNotFoundException $e) { | |
echo "Error: Ruta no encontrada"; | |
} catch (HttpMethodNotAllowedException $e) { | |
echo "Error: Ruta encontrada pero método no permitido"; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment