diff --git a/app/Controller/PersonController.php b/app/Controller/PersonController.php index cd34d727..97ba0a22 100644 --- a/app/Controller/PersonController.php +++ b/app/Controller/PersonController.php @@ -52,7 +52,7 @@ public function create(PersonRequest $request, ResponseInterface $response): Mes $this->redis->set($person['nick'], '.'); $this->redis->set($person['id'], json_encode($person)); - return $response->json($person)->withStatus(201)->withHeader('Location', "/pessoas/{$person['id']}"); + return $response->json($person)->withStatus(201); } public function show(RequestInterface $request, ResponseInterface $response, string $id): MessageResponseInterface