 
       After the user is logged in, the onLoggedIn hook is called (see Restfully.configure() for adding hook).
     ###
-    @add 'login', {authRequired: false},
+    @addRoute 'login', {authRequired: false},
       post: ->
         # Grab the username or email that the user is logging in with
         user = {}


      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']

      , this

    # Add the routes to the API
    @addRoute path, defaultOptions, collectionRouteEndpoints
    @addRoute "#{path}/:id", defaultOptions, entityRouteEndpoints

    return

