     post: (data) ->
       try
         Apollos.debug "Got POST #{url} id=#{@.params.id}"
-        platform = authenticatePlatform.call @, collection
+        platform = _authenticatePlatform.call @, collection
 
         if platform
           Apollos.debug "POST authenticated from #{platform.name}"

# Register a collection's endpoint
Apollos.api.addEndpoint = (collection, singular, options) ->

  obj = {}
  options or= {}

  options.nameForUrl or= collection


###

  _deleteResource

  @example authenticates and then calls the delete handler

    return _deleteResource.call @, Apollos.person.delete, platform

  @param context should be the HTTP.methods handler function
  @param handlerFunc is the function that will delete the resource
  @param platform is the source of the request to delete the resource

###
_deleteResource = (handlerFunc, platform) ->

  @.setContentType _jsonContentType
  id = Number @.params.id
