test des routes
continuous-integration/drone/push Build is passing Details

pull/130/head
Vincent ASTOLFI 2 years ago
parent f758b09cd6
commit 1960020877

@ -6,13 +6,13 @@ require_once(__DIR__.'/config/Autoload.php');
Autoload::charger(); Autoload::charger();
$router = new AltoRouter(); $router = new AltoRouter();
$router->map('GET|POST',"/","test");
$match=$router->match(); $router->map( 'GET', '/', function() {
echo "OUIIIII";
});
if(!$match){echo "404"; die;} // map user details page
$router->map( 'GET', '/test/', function() {
if($match){ echo "NOOOOOOON";
$cont = new Controller(); });
}
?> ?>
Loading…
Cancel
Save