From 3fb2ebf8da14c93ce4a239e481da7f2344f1e077 Mon Sep 17 00:00:00 2001 From: "dorian.hodin" Date: Wed, 8 Mar 2023 11:14:50 +0100 Subject: [PATCH] Add status 200 when API return --- Source/API/script/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/API/script/index.php b/Source/API/script/index.php index 1a3deb0..108a311 100644 --- a/Source/API/script/index.php +++ b/Source/API/script/index.php @@ -53,7 +53,7 @@ $app->get('/', function (Request $request, Response $response) { if (!$ok){ throw new HttpNotFoundError($request); } - return $response->withHeader('Content-type', 'application/json'); + return $response->withHeader('Content-type', 'application/json')->withStatus(200); });