Added /api/networks functionality