         auth
 
     ###
-    Add a logout endpoint to the API
-
-    After the user is logged out, the onLoggedOut hook is called (see Restfully.configure() for adding hook).
+      Add a logout endpoint to the API
+
+      After the user is logged out, the onLoggedOut hook is called (see Restfully.configure() for adding hook).
     ###
     @add 'logout', {authRequired: true},
       get: ->

      onLoggedOut: -> {}
    @configured = false

  ###
    Add endpoints for the given HTTP methods at the given path
  ###
  add: (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)

    # Don't add the route to the API until the API has been configured
    route.addToApi() if @configured


  ###
    Configure the ReST API

    Must be called exactly once, from anywhere on the server.

  _initAuth: ->
    self = this
    ###
      Add a login endpoint to the API

      After the user is logged in, the onLoggedIn hook is called (see Restfully.configure() for adding hook).
    ###
    @add 'login', {authRequired: false},
      post: ->
