diff --git a/Sources/API/index.php b/Sources/API/index.php index 100b2dd..4b5b99f 100644 --- a/Sources/API/index.php +++ b/Sources/API/index.php @@ -7,12 +7,12 @@ Autoload::charger(); $router = new AltoRouter(); -$router->map( 'GET', '/', function() { +$router->map( 'GET|POST', '/', function() { echo "OUIIIII"; }); // map user details page -$router->map( 'GET', '/test/', function() { +$router->map( 'GET|POST', '/test', function() { echo "NOOOOOOON"; }); ?> \ No newline at end of file