-
Task
-
Resolution: Done
-
Normal
-
3.0
-
None
-
None
Backbone data models should expose the endpoint they wrap to make them more flexible. Instead of assuming they will be on the same machine as the editor, we can add an option such as datawolfOptions.rest = URI that gets appended to the REST endpoint. For example:
var Person = Backbone.Model.extend({
});
var PersonCollection = Backbone.Collection.extend({
model: Person,
url: datawolfOptions.rest + '/persons/'
});