 
   ajax: (url, method, options) ->
     method = method.toUpperCase()
+
     endpoint = Travis.config.api_endpoint || ''
     options = options || {}
 

      options.headers ||= {}
      options.headers['Authorization'] ||= "token #{token}"

    options.url = "#{endpoint}#{url}"
    options.type = method
    options.dataType = options.dataType || 'json'
    options.context = this


  DEFAULT_OPTIONS:
    accepts:
      json: 'application/json; version=2'

  get: (url, callback) ->
    @ajax(url, 'get', success: callback)
