node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »

backbone-proxy

Backbone Proxy

Provides a Backbone.sync or Model.sync method for the server-side context. Uses node-get to retrieve models from another server allowing models to be backed by a REST JSON endpoint elsewhere.

Compatibility

documentcloud backbone 0.3.3
tmcw node-get 0.1.0

Usage

var Backbone = require('backbone');
Backbone.sync = require('backbone-proxy')().sync;

// Backbone.sync will now load models from the URL specified by `Model.url`

Authors