From ec08b6c00b4d79b86629fe12d8cc2fbb9320718a Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Mon, 13 Mar 2023 02:05:02 +0200 Subject: [PATCH] Update CustomerController.php --- src/Controllers/CustomerController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Controllers/CustomerController.php b/src/Controllers/CustomerController.php index 9c6f80c..38173f7 100644 --- a/src/Controllers/CustomerController.php +++ b/src/Controllers/CustomerController.php @@ -20,7 +20,11 @@ public function index(ServerRequestInterface $request): ResponseInterface status: 201, headers: [ 'Content-Type' => 'application/json', - 'Content-Length' => $contentLength + 'Content-Length' => $contentLength, + 'Date' => gmdate('D, d M Y H:i:s').' GMT', + 'Server' => 'Pinglet', + 'Cache-Control' => 'max-age=3600', + 'Access-Control-Allow-Origin' => '*' ], body: $responseBody );