<?php
require_once __DIR__.'/../../_bootstrap.php';require_once ROOT_PATH.'/includes/match_functions.php';$u=afApiOuSessaoUsuario($pdo);$partidaId=(int)($_GET['partida_id']??0);
try{jsonResponse(['ok'=>true,'viewers'=>afModerationLiveViewers($pdo,(int)$u['id'],$partidaId)]);}catch(Throwable $e){jsonResponse(['ok'=>false,'erro'=>$e->getMessage()],403);}
