       , this
 
     # Add the routes to the API
-    @add path, defaultOptions, collectionRouteEndpoints
-    @add "#{path}/:id", defaultOptions, entityRouteEndpoints
+    @addRoute path, defaultOptions, collectionRouteEndpoints
+    @addRoute "#{path}/:id", defaultOptions, entityRouteEndpoints
 
     return
 


      After the user is logged out, the onLoggedOut hook is called (see Restfully.configure() for adding hook).
    ###
    @add 'logout', {authRequired: true},
      get: ->
        # Remove the given auth token from the user's account
        authToken = @request.headers['x-auth-token']

  ###*
    Add endpoints for the given HTTP methods at the given path
  ###
  addRoute: (path, options, methods) ->
    # Create a new route and add it to our list of existing routes
    route = new Route(this, path, options, methods)
    @routes.push(route)
