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);