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();
$router = new AltoRouter();
$router->map('GET|POST',"/","test");
$match=$router->match();
$router->map( 'GET', '/', function() {
echo "OUIIIII";
});
if(!$match){echo "404"; die;}
if($match){
$cont = new Controller();
}
// map user details page
$router->map( 'GET', '/test/', function() {
echo "NOOOOOOON";
});
?>
Loading…
Cancel
Save