add an API endpoint to grab all networks