getAncestors(); } $response->getBody()->write(json_encode($path)); return $response->withHeader('Content-type', 'application/json'); } }