 deleteRecord = (token, endpoint, domainId, recordId) ->
   d = Q.defer()
   options =
-    url: endpoint + '/domains/' + domainId + '/records/' + recordId
+    url: endpoint + 'domains/' + domainId + '/records/' + recordId
     headers:
       'X-Auth-Token': token
   request.del options, (error, response) ->

listRecords = (token, endpoint, domainId) ->
  d = Q.defer()
  options =
    url: endpoint + '/domains/' + domainId + '/records'
    json: true
    headers:
      'Accept': 'application/json'

      d.resolve
        expiry: body.access.token.expires,
        token: body.access.token.id,
        endpoint: designateEndpoint+"v1/"
  d.promise

listDomains = (token, endpoint) ->
  d = Q.defer()
  options =
    url: endpoint + 'domains/'
    json: true
    headers:
      'Accept': 'application/json'
