adding torrent-add api call to endpoint.php