               .value()
           # Partition the endpoints into their respective routes
           if method in methodsOnCollection
-            _.extend collectionEndpoints, configuredEndpoint
-          else _.extend entityEndpoints, configuredEndpoint
+            _.extend collectionRouteEndpoints, configuredEndpoint
+          else _.extend entityRouteEndpoints, configuredEndpoint
           return
       , this
 
     # Add the routes to the API
-    @add path, defaultOptions, collectionEndpoints
-    @add "#{path}/:id", defaultOptions, entityEndpoints
+    @add path, defaultOptions, collectionRouteEndpoints
+    @add "#{path}/:id", defaultOptions, entityRouteEndpoints
 
     return
 

  ###*
    Generate routes for the Meteor Collection with the given name
  ###
  addCollection: (name, options = {}) ->
    methods = ['get', 'post', 'put', 'delete', 'getAll', 'deleteAll']
    methodsOnCollection = ['post', 'getAll', 'deleteAll']

    # Get the collection from the db
    if name.toLowerCase() is 'users'
      collection = Meteor.users
    else
      collection = new Mongo.Collection name

    # Flatten the options and set defaults if necessary
    configurableEndpoints = options.endpoints
    defaultOptions = options.default or {}
    blacklist = options.blacklist or []

    # Use collection name as default path 
    path = options.path or name

    # Separate the requested endpoints by the route they belong to (one for operating on the entire collection and one
    # for operating on a single entity within the collection)
    collectionEndpoints = {}
    entityEndpoints = {}
    if not configurableEndpoints  # Generate all endpoints on this collection
      # Partition the endpoints into their respective routes
      _.each methods, (method) ->
        if method in methodsOnCollection
          _.extend collectionEndpoints, @_collectionEndpoints[method](collection)
        else _.extend entityEndpoints, @_collectionEndpoints[method](collection)
        return
      , this
    else

          # Configure endpoint and map to it's http method
          # TODO: Consider predefining a map of methods to their http method type (e.g., deleteAll: delete)
          configuredEndpoint = {}
          _.each collectionEndpoints[method].call(this, collection), (action, methodType) ->
            configuredEndpoint[methodType] =
              _.chain action
              .clone()
