                 $scope.package[v.id] = {}
                 $scope.package[v.id].name = p.name
                 $scope.package[v.id].version = v.version
+
+    $scope.fetchMirrors = (page = 1)->
+      fetchAllPaginated 'mirrors',
+        (data) ->
+          # append the mirror to the list of mirrors
+          $scope.mirrors.push.apply( $scope.mirrors, data )
 
     $scope.fetchNode = (id)->
       Restangular.one('node', id).get().

      # fetch base data
      $scope.fetchNodes()
      $scope.fetchPackages()

    # initialize this module
    $? && $(document).ready ()->

    $scope.allPackages = []
    $scope.nodes = []
    $scope.packages = []
    $scope.mirrors = []
    $scope.node = {}
    $scope.package = {}
    $scope.packageByName = {}
