<?php
require_once __DIR__.'/../../_bootstrap.php';
$u=apiUsuario($pdo);
if($_SERVER['REQUEST_METHOD']!=='GET')jsonResponse(['ok'=>false,'erro'=>'Método não permitido.'],405);
$summary=afMinorPolicySummary($pdo,(int)$u['id'],true);
jsonResponse(['ok'=>true,'policy'=>afMinorPolicyApiSummary($summary),'age'=>afResumoIdade($pdo,(int)$u['id'])]);
