From add061d7b44d0ece315bff49223a96fca5e6d882 Mon Sep 17 00:00:00 2001 From: hulivet1 Date: Tue, 3 Jan 2023 17:19:19 +0100 Subject: [PATCH] Patch API --- Sources/API/public/index.php | 4 ---- Sources/API/routes/Banque.php | 2 -- Sources/API/routes/Inscrit.php | 2 -- 3 files changed, 8 deletions(-) diff --git a/Sources/API/public/index.php b/Sources/API/public/index.php index 1a87c74..273acb5 100644 --- a/Sources/API/public/index.php +++ b/Sources/API/public/index.php @@ -14,10 +14,6 @@ $app->get('/', function (Request $request, Response $response, $args) { return $response; }); -$app->get('/Inscrit/', function(Request $request, Response $response, $args){ - print('TEEEEST'); -}); - require __DIR__.'/../routes/Inscrit.php'; require __DIR__.'/../routes/Banque.php'; diff --git a/Sources/API/routes/Banque.php b/Sources/API/routes/Banque.php index 1e07c0e..728d802 100644 --- a/Sources/API/routes/Banque.php +++ b/Sources/API/routes/Banque.php @@ -8,8 +8,6 @@ use OpenApi\Annotations as OA; * @OA\Info(title="My First API", version="0.1") */ -$app = AppFactory::create(); - $app->addBodyParsingMiddleware(); $app->addRoutingMiddleware(); $app->addErrorMiddleware(true, true, true); diff --git a/Sources/API/routes/Inscrit.php b/Sources/API/routes/Inscrit.php index 88902fb..5be8ebf 100644 --- a/Sources/API/routes/Inscrit.php +++ b/Sources/API/routes/Inscrit.php @@ -8,8 +8,6 @@ use OpenApi\Annotations as OA; * @OA\Info(title="My First API", version="0.1") */ -$app = AppFactory::create(); - $app->addBodyParsingMiddleware(); $app->addRoutingMiddleware(); $app->addErrorMiddleware(true, true, true);