// Generated by CoffeeScript 1.7.1
(function() {
  var Anode, anode;

  Anode = (function() {
    function Anode() {}

    Anode.prototype._ajax = function(method, endpoint, data) {
      return $.ajax({
        type: method,
        url: "http://localhost:3000/api2/" + endpoint,
        headers: {
          'Accept-Version': '1.0.0'
        }
      });
    };

    Anode.prototype.get = function(resource) {
      return this._ajax('get', resource);
    };

    return Anode;

  })();

  anode = window.Anode = new Anode;

  anode.get('products');

}).call(this);
