backbone-request-sync
v0.0.1
Published
Backbone sync adapter
Downloads
3
Readme
backbone-request-sync
Simple sync adapter.
Example
var sync = require('backbone-request-sync');
Model.prototype.sync = sync;
// Or
Model.prototype.sync = function (method, model, options) {
options.headers = {
Authorization: 'Token'
};
sync(method, model, options);
}