Vote::where('group_id', groupViaToken($_SESSION['token'])->id)->get()->jsonSerialize())); } else { http_response_code(401); echo json_encode(["message" => "not login"]); }