From fd459d3e19cdca4e7eebfde9e83c44ed9e9e1647 Mon Sep 17 00:00:00 2001 From: viastolfi Date: Fri, 25 Nov 2022 18:08:41 +0100 Subject: [PATCH] test des routes --- Sources/API/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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